Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/slices/aclSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,11 @@ export const checkAcls = (acls: TransformedAcl[]) => (dispatch: AppDispatch, get
bothRights = true;
}

// check if each policy has read or write right (at least one checkbox should be checked)
if (!acls[i].read && !acls[i].write) {
// check if each policy has either
// - read rights
// - write rights
// - custom action rights
if (!acls[i].read && !acls[i].write && acls[i].actions.length === 0) {
check = false;
}
}
Expand Down
Loading