*Partner reported in ACA project issues*
They didn't raise a support case or MNT
Raised by NLX Software BV
ACA Github ticket - https://github.com/Alfresco/alfresco-content-app/issues/1493
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:
Declare the evaluator above and use it within the `extension.plugin.json`
Login as a user which is in the `GROUP_SITE_CREATORS` group
Go to the libraries view (`/libraries`)
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