User profile information in an evaluator is empty on first load when navigation is the libraries view

Description

*Partner reported in ACA project issues* 

 

Describe the bug
I've created the following evaluator to check for the groups of the current user.

 

 

This evaluator is used within the "create menu":

 

 

This works when the active navigation is a folder (url `/libraries/FOLDER_NODEREF`). But when I reload the app to the libraries/sites view (url `/libraries`) the `context.profile` object has all empty/null values and the `groups` property of `profile` is `undefined`.

 

Environment

  • ACA version: 1.10.1

  • ACS version: 5.2, 6.0

  • ADW version: 1.4.1

 

Steps to reproduce the behavior:

  1. Declare the evaluator above and use it within the `extension.plugin.json`

  2. Login as a user which is in the `GROUP_SITE_CREATORS` group

  3. Go to the libraries view (`/libraries`)

  4. Button in the create menu is not visible and console shows the logs because `context.profile.groups` is falsy.

Logs

5. Click on a library in the documentList
6. Button in the create menu is visible

 

Logs

7. Click on "Libraries" in the sidebar
8. Button in the create menu is still visible

Logs

Expected behavior
1. Declare the evaluator above and use it within the `extension.plugin.json`
2. Login as a user which is in the `GROUP_SITE_CREATORS` group
3. Go to the libraries view (`/libraries`)
4. Button in the create menu is visible

 

Environment

None
Done
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

Irving Navarrete

Bug Priority

Category 1

Delivery Team

Team 4

Release Train

Hayes & Harlington