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

Commit

Permalink
fix(permissions): set minimum dependencies
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 a364834 commit 68828f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shareable/permissions/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class extends PermissionGroup<CommentFlags, Permissions> {
[ "writeOwnScope", {
"flag": WRITE_OWN_SCOPE,
"mask": WRITE_SCOPE_MASK,
"permissionDependencies": [ ]
"permissionDependencies": [ "readDepartmentScope" ]
} ],
[ "writeDepartmentScope", {
"flag": WRITE_DEPARTMENT_SCOPE,
Expand Down
2 changes: 1 addition & 1 deletion shareable/permissions/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class extends PermissionGroup<PostFlags, Permissions> {
[ "writeOwnScope", {
"flag": WRITE_OWN_SCOPE,
"mask": WRITE_SCOPE_MASK,
"permissionDependencies": [ ]
"permissionDependencies": [ "readDepartmentScope" ]
} ],
[ "writeDepartmentScope", {
"flag": WRITE_DEPARTMENT_SCOPE,
Expand Down

0 comments on commit 68828f6

Please sign in to comment.