mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-6278] - disable manage rules for smart folders (#3518)
This commit is contained in:
@@ -495,8 +495,7 @@ export const canEditAspects = (context: RuleContext): boolean =>
|
||||
canUpdateSelectedNode(context),
|
||||
!isWriteLocked(context),
|
||||
navigation.isNotTrashcan(context),
|
||||
repository.isMajorVersionAvailable(context, '7'),
|
||||
!isSmartFolder(context)
|
||||
repository.isMajorVersionAvailable(context, '7')
|
||||
].every(Boolean);
|
||||
|
||||
/**
|
||||
@@ -626,7 +625,7 @@ export function canOpenWithOffice(context: AcaRuleContext): boolean {
|
||||
return context.permissions.check(file, ['update']);
|
||||
}
|
||||
|
||||
function isSmartFolder(context: RuleContext): boolean {
|
||||
export function isSmartFolder(context: RuleContext): boolean {
|
||||
if (!context.selection?.isEmpty) {
|
||||
const node = context.selection.first;
|
||||
if (!node?.entry.isFolder) {
|
||||
|
Reference in New Issue
Block a user