Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-124

The button to create a new calendar should not be available if user has no right

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Component/s: Calendar
    • Labels:
      None

      Description

      I have no right to add a new calendar.
      But the button "New calendar" is available. When validating the dialog box, an error is displayed (and the error does not inform me that I have no sufficient right)

      In logs

      Caused by: java.lang.IllegalAccessException: User 'UserIdentity [login=admin, population=ametys_demo_users]' tried to access a privilege feature without convenient right [Plugin_Explorer_Calendar_Add, /resources/calendars]
      	at org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO.checkUserRight(ExplorerResourcesDAO.java:465)
      	at org.ametys.plugins.explorer.calendars.actions.CalendarDAO.addCalendar(CalendarDAO.java:546)
      	at org.ametys.intranet.calendars.CalendarManager.addCalendar(CalendarManager.java:427)
      	... 125 more
      

        Attachments

          Activity

            People

            • Assignee:
              trizzi Thibaut Rizzi (Inactive)
              Reporter:
              laurence Laurence Aumeunier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: