add conditions to all entity actions
This commit is contained in:
@@ -20,6 +20,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_CREATE_BLUEPRINT],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -21,7 +21,7 @@ const entityActions: Array<ManifestTypes> = [
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_CREATE],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsTrashed',
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -21,6 +21,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_CULTURE_AND_HOSTNAMES],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -17,6 +17,9 @@ export const manifests: Array<ManifestTypes> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_DUPLICATE],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
...repositoryManifests,
|
||||
|
||||
@@ -55,6 +55,9 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_PUBLISH],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -74,6 +77,9 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_UNPUBLISH],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -93,6 +99,9 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_PERMISSIONS],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -112,6 +121,9 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_NOTIFICATIONS],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -22,6 +22,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_MOVE],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -21,6 +21,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_PUBLIC_ACCESS],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -24,6 +24,9 @@ export const manifests: Array<ManifestTypes> = [
|
||||
alias: 'Umb.Condition.UserPermission.Document',
|
||||
allOf: [UMB_USER_PERMISSION_DOCUMENT_SORT],
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -16,6 +16,11 @@ export const manifests: Array<ManifestTypes> = [
|
||||
itemRepositoryAlias: UMB_DOCUMENT_ITEM_REPOSITORY_ALIAS,
|
||||
recycleBinRepositoryAlias: UMB_DOCUMENT_RECYCLE_BIN_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.IsNotTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
@@ -28,6 +33,11 @@ export const manifests: Array<ManifestTypes> = [
|
||||
recycleBinRepositoryAlias: UMB_DOCUMENT_RECYCLE_BIN_REPOSITORY_ALIAS,
|
||||
pickerModal: UMB_DOCUMENT_PICKER_MODAL,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.IsTrashed',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
|
||||
Reference in New Issue
Block a user