79739942

Date: 2025-08-19 13:16:13
Score: 4.5
Natty:
Report link

@Charlie Harding "Instead of @RolesAllowed, I implemented a custom @PermissionsAllowed annotation. I created a PermissionChecker that uses a map to link specific actions (permissions) like menu.Doctors to a list of allowed roles. The system then checks if the logged-in user's roles match any of the allowed roles for that permission. This gives me a more granular, permission-based control rather than just role-based."

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Charlie
  • User mentioned (0): @RolesAllowed
  • User mentioned (0): @PermissionsAllowed
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Dejan