예제 #1
0
        private static void ClearPermissionCache(int moduleId)
        {
            var        objModules = new ModuleController();
            ModuleInfo objModule  = objModules.GetModule(moduleId, Null.NullInteger, false);

            DataCache.ClearModulePermissionsCache(objModule.TabID);
        }
예제 #2
0
        public int AddModulePermission(ModulePermissionInfo objModulePermission, int tabId)
        {
            int Id = Convert.ToInt32(DataProvider.Instance().AddModulePermission(objModulePermission.ModuleID, objModulePermission.PermissionID, objModulePermission.RoleID, objModulePermission.AllowAccess));

            DataCache.ClearModulePermissionsCache(tabId);
            return(Id);
        }
        public int AddModulePermission(ModulePermissionInfo objModulePermission, int tabId)
        {
            int id = DataProvider.Instance().AddModulePermission(objModulePermission.ModuleID,
                                                                 objModulePermission.PermissionID,
                                                                 objModulePermission.RoleID,
                                                                 objModulePermission.AllowAccess,
                                                                 objModulePermission.UserID,
                                                                 UserController.GetCurrentUserInfo().UserID);

            DataCache.ClearModulePermissionsCache(tabId);
            return(id);
        }
예제 #4
0
        public int AddModulePermission(ModulePermissionInfo modulePermission, int tabId)
        {
            PortalSettings portal = PortalSettings.Current;

            int id = DataProvider.Instance().AddModulePermission(modulePermission.ModuleID,
                                                                 portal.PortalId,
                                                                 modulePermission.PermissionID,
                                                                 modulePermission.RoleID,
                                                                 modulePermission.AllowAccess,
                                                                 modulePermission.UserID,
                                                                 UserController.GetCurrentUserInfo().UserID);

            DataCache.ClearModulePermissionsCache(tabId);
            return(id);
        }
        private static void ClearPermissionCache(int moduleId)
        {
            ModuleInfo objModule = ModuleController.Instance.GetModule(moduleId, Null.NullInteger, false);

            DataCache.ClearModulePermissionsCache(objModule.TabID);
        }
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// SaveModulePermissions updates a Module's permissions.
 /// </summary>
 /// <param name="module">The Module to update.</param>
 /// -----------------------------------------------------------------------------
 public static void SaveModulePermissions(ModuleInfo module)
 {
     _provider.SaveModulePermissions(module);
     DataCache.ClearModulePermissionsCache(module.TabID);
 }
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// SaveModulePermissions updates a Module's permissions
 /// </summary>
 /// <param name="objModule">The Module to update</param>
 /// <history>
 ///     [cnurse]	04/15/2009   Created
 /// </history>
 /// -----------------------------------------------------------------------------
 public static void SaveModulePermissions(ModuleInfo objModule)
 {
     Provider.SaveModulePermissions(objModule);
     DataCache.ClearModulePermissionsCache(objModule.TabID);
 }