Skip to content

Commit 5bf5c41

Browse files
committed
BSR
1 parent 2acb5f0 commit 5bf5c41

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/tabs/Roles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

server/src/main/java/invite/manage/Manage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)