Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-45121

Date Manager errors on SignUp permission even when tool not installed in site

    XMLWordPrintable

    Details

    • 21 Status:
      Verified
    • 20 status:
      Verified
    • Test Plan:
      Hide
      1. Create a site with Assignments, Announcements, Calendar – Do Not Add Signup tool
      2. As an admin, remove all signup.* permissions from the realm for the Instructor role in the site you just created
      3. Add an assignment to the site so you have something to adjust the date for
      4. Access the date manager, change the date for the assignment you just created

      Expected Result : you can adjust the date for the assignment with no error in console 

      Actual Result : Update fails as the Instructor does not have a needed permission to update the SignUp tool.  Even though it's not installed.

      Show
      Create a site with Assignments, Announcements, Calendar – Do Not Add Signup tool As an admin, remove all signup.* permissions from the realm for the Instructor role in the site you just created Add an assignment to the site so you have something to adjust the date for Access the date manager, change the date for the assignment you just created Expected Result : you can adjust the date for the assignment with no error in console  Actual Result : Update fails as the Instructor does not have a needed permission to update the SignUp tool.  Even though it's not installed.

      Description

      We have a case where an Instructor is allowing TAs to use the Date Manager to adjust dates in a site.  This kept failing with the following error in the browser console:

      Uncaught TypeError: Cannot read property 'title' of undefined
       at Object.<anonymous> (sakai.datemanager.helper:1682)
       at Function.each (jquery.js:370)
       at a.fn.init.each (jquery.js:137)
       at printErrors (sakai.datemanager.helper:1677)
       at Object.success (sakai.datemanager.helper:1764)
       at i (jquery.js:3232)
       at Object.fireWith [as resolveWith] (jquery.js:3362)
       at y (jquery.js:9840)
       at XMLHttpRequest.c (jquery.js:10311)

       

      Looking at the POST message I'm seeing the following:

      {"status": "ERROR", "errors": [{"msg":"Update permission denied","toolId":"signupMeetings","field":"signup","toolTitle":"Sign-up","idx":0}]}
      

       

      The signup tool was not installed in the site but Date Manager was still checking to see if signup.create.site permission was enabled.  The TA did not have the permission and the updates failed.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                karagon Kenneth Aragon
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration