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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.0
    • 1.0.0
    • Module Calendar
    • None

      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
      

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

              Created:
              Updated:
              Resolved: