mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-6445] Address #PT20471_7 Missing Access Control (#3627)
This commit is contained in:
committed by
GitHub
parent
4393f337c5
commit
bcb7e634d9
@@ -554,7 +554,7 @@ export const canShowLogout = (context: AcaRuleContext): boolean => !context.with
|
||||
* @param context Rule execution context
|
||||
*/
|
||||
export const isLibraryManager = (context: RuleContext): boolean =>
|
||||
hasLibrarySelected(context) && context.selection.library?.entry.role === 'SiteManager';
|
||||
hasLibrarySelected(context) && (context.selection.library?.entry.role === 'SiteManager' || isAdmin(context));
|
||||
|
||||
/**
|
||||
* Checks if the preview button for search results can be showed
|
||||
|
Reference in New Issue
Block a user