Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1763

Separate service method to check if user has administrator permissions

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4 Larks
    • Fix Version/s: tech debt
    • Labels:
      None

      Description

      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.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                anatolievi4 Andrei Alikov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel