-
Type:
Improvement
-
Status: Open (View Workflow)
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.4 Larks
-
Fix Version/s: tech debt
-
Labels:None
Instead of checking in the different methods like following code:
@PreAuthorize("hasPermission(#componentId, 'COMPONENT', 'GeneralPermission.ADMIN')")
we need to introduce one special service layer method for checking the permissions of the user. In many methods "componentId" parameter is necessary only for permissions checking so we can get rid of this parameter.