Skip to content

Commit

Permalink
Fixed role permissions for Domain Admins
Browse files Browse the repository at this point in the history
  • Loading branch information
jzongker committed Aug 21, 2023
1 parent f9c6a20 commit 33f7382
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/appBase
5 changes: 4 additions & 1 deletion src/settings/RolePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export const RolePage = () => {
const getSidebar = () => {
if (!UserHelper.checkAccess(Permissions.membershipApi.roles.edit)) return (null);
else {
if (role.name==="Domain Admins") return (<DisplayBox id="rolePermissionsBox" headerText="Edit Permissions" headerIcon="lock"><p>Permissions cannot be edited for the Domain Admins role. Domain Admins have full access.</p></DisplayBox>)
if (role.name==="Domain Admins") return (<>
{getAddUser()}
<DisplayBox id="rolePermissionsBox" headerText="Edit Permissions" headerIcon="lock"><p>Permissions cannot be edited for the Domain Admins role. Domain Admins have full access.</p></DisplayBox>
</>)
else return (<>
{getAddUser()}
<RolePermissions role={role} />
Expand Down

0 comments on commit 33f7382

Please sign in to comment.