Adding Permission Fails for Roles Without Users
- Dominant language
- JavaScript
- Stars
- 8
- Forks
- 38
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 44
Description
on https://da.live/apps/aem-permissions#, if none of the users have the role that a new user is requesting, there is a JS error that prevents the permissions to be applied.
utils.js:204 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'some')
at utils.js:204:40
at Array.forEach ()
at approveSiteUser (utils.js:196:13)
at async NxPermissions.handleUserAction (
Contributor guide
Research direction
Open the permissions app at https://da.live/apps/aem-permissions# and inspect approveSiteUser in utils.js around lines 196-204, where the reported error occurs. Reproduce the case with no existing users holding the requested role; done means adding the user applies the permissions without a JavaScript error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authorization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100