adobe / adobe/da-nx

Adding Permission Fails for Roles Without Users

Open Beginner friendly
#16 0 comments 0 reactions 0 assignees View on GitHub
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.

Image

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.