API for fetching project permissions is not giving accurate results

XMLWordPrintable

    • 3
    • Severity 3 - Minor

      Issue -

      If we use my permissions API like this rest/api/3/mypermissions?permissions=EDIT_ALL_WORKLOGS&issuekey=ABC-10, the results are not accurate.

      Eg. My user doesn't have Edit Worklog permissions and I tested this

      Call - https://dexter1234.atlassian.net/rest/api/3/mypermissions?permissions=EDIT_ALL_WORKLOGS&issuekey=ABC-10

      Output :

       

      {"permissions":{"EDIT_ALL_WORKLOGS":
      {"id":"41","key":"EDIT_ALL_WORKLOGS","name":"Edit All Worklogs","type":"PROJECT","description":"Ability to edit all worklogs made on issues.","havePermission":*true*}
      }}
      

      We also noticed that the API calls picks up information from cache since sometimes it gives accurate results in incognito mode so the behaviour is not consistent.

       

              Assignee:
              Abhinaya Sinha
              Reporter:
              Madhuri Godhwani (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: