/// ----------------------------------------------------------------------------- /// <summary> /// Updates a Permission /// </summary> /// <param name="permissions">The permissions collection</param> /// <param name="role">The roleto add</param> /// ----------------------------------------------------------------------------- protected override void AddPermission(ArrayList permissions, RoleInfo role) { //Search TabPermission Collection for the user if (_DesktopModulePermissions.Cast <DesktopModulePermissionInfo>().Any(p => p.RoleID == role.RoleID)) { return; } //role not found so add new foreach (PermissionInfo objPermission in permissions) { if (objPermission.PermissionKey == "DEPLOY") { AddPermission(objPermission, role.RoleID, role.RoleName, Null.NullInteger, Null.NullString, true); } } }