public int UpdateFrom18() { //update permissions based on the new stereotypes we created var stereotypes = new Permissions().GetDefaultStereotypes(); _utilsServices.UpdateStereotypesPermissions(stereotypes); return(19); }
public int Create() { //update permissions based on the stereotypes var stereotypes = new AdvancedSearchPermissions().GetDefaultStereotypes(); _utilsServices.UpdateStereotypesPermissions(stereotypes); return(1); }
public int Create() { //Update permissions based on stereotypes var stereotypes = new HiddenFieldsPermissions().GetDefaultStereotypes(); _utilsServices.UpdateStereotypesPermissions(stereotypes); //update permissions for all existing roles: //We make it so that by default all roles can see the Hidden Fields in the back-end. Note that this includes the //"Authenticated" role, which is by default assigned to all created users. A consequence of this is that all users //accessing the back-end will be able to see the values of the hidden fields. It is up to the administrator to //selectively remove this permission. var allRoles = _roleService.GetRoles(); foreach (var role in allRoles) { _roleService.CreatePermissionForRole(role.Name, HiddenFieldsPermissions.MaySeeHiddenFields.Name); } return(1); }