Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(role): ensure undeleted state
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Trecy Tobias <19201.tobias.kennethtrecy.c@gmail.com>
  • Loading branch information
lemredd and KennethTrecy committed Nov 24, 2022
1 parent 06d2bf9 commit 9a66804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/role/make_management_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function(

const mayArchiveRole = permissionGroup.hasOneRoleAllowed(roles, [
ARCHIVE_AND_RESTORE
])
]) && !isDeleted

const mayRestoreRole = permissionGroup.hasOneRoleAllowed(roles, [
ARCHIVE_AND_RESTORE
Expand Down

0 comments on commit 9a66804

Please sign in to comment.