File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
server/src/main/java/invite/manage Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ export const Roles = () => {
152152 ] ;
153153
154154 const isSuperUser = isUserAllowed ( AUTHORITIES . SUPER_USER , user ) ;
155- const isManager = isUserAllowed ( AUTHORITIES . INSTITUTION_ADMIN , user ) ;
155+ const isAllowedToCreateNewRole = isUserAllowed ( AUTHORITIES . INSTITUTION_ADMIN , user ) ;
156156 const isInstitutionAdmin = highestAuthority ( user ) === AUTHORITIES . INSTITUTION_ADMIN ;
157157 const isGuest = highestAuthority ( user ) === AUTHORITIES . GUEST ;
158158 if ( isInstitutionAdmin && ! isEmpty ( user . institution ) && roles . length === 0 && ! searching ) {
@@ -172,7 +172,7 @@ export const Roles = () => {
172172 { ! isGuest && < Entities
173173 entities = { isSuperUser ? roles : roles . filter ( role => ! ( role . isUserRole && role . authority === "GUEST" ) ) }
174174 modelName = "roles"
175- showNew = { isManager }
175+ showNew = { isAllowedToCreateNewRole }
176176 newLabel = { I18n . t ( "roles.new" ) }
177177 newEntityPath = { "/role/new" }
178178 defaultSort = "name"
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public interface Manage {
2828 List <Map <String , Object >> identityProvidersByInstitutionalGUID (String organisationGUID );
2929
3030 default List <Map <String , Object >> transformProvider (List <Map <String , Object >> providers ) {
31- //Defensive because of Manage misbehaviour
31+ //Defensive because of Manage misbehavior
3232 if (CollectionUtils .isEmpty (providers )) {
3333 return new ArrayList <>();
3434 }
You can’t perform that action at this time.
0 commit comments