add extra condition on all user entity actions to check if they are allowed to perform actions in general
This commit is contained in:
@@ -19,6 +19,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
itemRepositoryAlias: UMB_USER_ITEM_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.User.CanPerformActions',
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.User.AllowDeleteAction',
|
||||
},
|
||||
@@ -37,6 +40,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
label: 'Enable',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.User.CanPerformActions',
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.User.AllowEnableAction',
|
||||
},
|
||||
@@ -55,6 +61,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
label: 'Disable',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.User.CanPerformActions',
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.User.AllowDisableAction',
|
||||
},
|
||||
@@ -72,6 +81,11 @@ const entityActions: Array<ManifestTypes> = [
|
||||
icon: 'icon-key',
|
||||
label: 'Change Password',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.User.CanPerformActions',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
@@ -86,6 +100,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
label: 'Unlock',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.User.CanPerformActions',
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.User.AllowUnlockAction',
|
||||
},
|
||||
@@ -104,6 +121,9 @@ const entityActions: Array<ManifestTypes> = [
|
||||
label: 'Configure Two-Factor',
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.User.CanPerformActions',
|
||||
},
|
||||
{
|
||||
alias: 'Umb.Condition.User.AllowMfaAction',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user