Skip to content
Browse files
OAK-9614 : Document best pratices for Oak Access Control Management a…
…nd Permission Evaluation
  • Loading branch information
anchela committed May 18, 2022
1 parent 7a9373d commit 41d1d61dec3191af36d33eeb28d49d57c81b21bd
Showing 1 changed file with 1 addition and 1 deletion.
@@ -237,7 +237,7 @@ also [Permissions vs Privileges](../permission/permissionsandprivileges.html)) a
boolean canRemoveNode = session.hasPermission(toRemove, JackrabbitSession.ACTION_REMOVE_NODE)

# test if a non-existing node could be removed (not possible with privilege evaluation)
boolean canRemoveNode = session.hasPermission(nonExisting, JackrabbitSession.ACTION_REMOVE_NODE)
boolean canRemoveNode = session.hasPermission(/content/parent/newchild, JackrabbitSession.ACTION_REMOVE_NODE)

#### Leverage `PrivilegeCollection`

0 comments on commit 41d1d61

Please sign in to comment.