Add permission-evaluator module: hasPermission() with PermissionEvaluator and @EnableMethodSecurity
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YPgGH6aMbSLANL3E2HHmS6
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
document 1 before: Document[id=1, owner=alice, team=team-a, title=Q3 plan]
|
||||
carol update(forged owner=carol) -> ALLOWED
|
||||
document 1 after: Document[id=1, owner=carol, team=team-b, title=hijacked]
|
||||
carol updateTitle(1, "hijacked") -> DENIED (AuthorizationDeniedException: Access Denied)
|
||||
document 1 after: Document[id=1, owner=alice, team=team-a, title=Q3 plan]
|
||||
Reference in New Issue
Block a user