add missing user permissions + add groups
This commit is contained in:
@@ -13,6 +13,12 @@ export const UMB_USER_PERMISSION_DOCUMENT_PUBLISH = 'Umb.UserPermission.Document
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_PERMISSIONS = 'Umb.UserPermission.Document.Permissions';
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_SEND_FOR_APPROVAL = 'Umb.UserPermission.Document.SendForApproval';
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_UNPUBLISH = 'Umb.UserPermission.Document.Unpublish';
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_COPY = 'Umb.UserPermission.Document.Copy';
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_MOVE = 'Umb.UserPermission.Document.Move';
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_SORT = 'Umb.UserPermission.Document.Sort';
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_CULTURE_AND_HOSTNAMES = 'Umb.UserPermission.Document.CultureAndHostnames';
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_PUBLIC_ACCESS = 'Umb.UserPermission.Document.PublicAccess';
|
||||
export const UMB_USER_PERMISSION_DOCUMENT_ROLLBACK = 'Umb.UserPermission.Document.Rollback';
|
||||
|
||||
const permissions: Array<ManifestUserPermission> = [
|
||||
{
|
||||
@@ -115,6 +121,72 @@ const permissions: Array<ManifestUserPermission> = [
|
||||
description: 'Allow access to save a document',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'userPermission',
|
||||
alias: UMB_USER_PERMISSION_DOCUMENT_COPY,
|
||||
name: 'Copy Document User Permission',
|
||||
meta: {
|
||||
entityType: 'document',
|
||||
label: 'Copy',
|
||||
description: 'Allow access to copy a document',
|
||||
group: 'structure',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'userPermission',
|
||||
alias: UMB_USER_PERMISSION_DOCUMENT_MOVE,
|
||||
name: 'Move Document User Permission',
|
||||
meta: {
|
||||
entityType: 'document',
|
||||
label: 'Move',
|
||||
description: 'Allow access to move a document',
|
||||
group: 'structure',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'userPermission',
|
||||
alias: UMB_USER_PERMISSION_DOCUMENT_SORT,
|
||||
name: 'Sort Document User Permission',
|
||||
meta: {
|
||||
entityType: 'document',
|
||||
label: 'Sort',
|
||||
description: 'Allow access to sort documents',
|
||||
group: 'structure',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'userPermission',
|
||||
alias: UMB_USER_PERMISSION_DOCUMENT_CULTURE_AND_HOSTNAMES,
|
||||
name: 'Document Culture And Hostnames User Permission',
|
||||
meta: {
|
||||
entityType: 'document',
|
||||
label: 'Culture And Hostnames',
|
||||
description: 'Allow access to set culture and hostnames for documents',
|
||||
group: 'administration',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'userPermission',
|
||||
alias: UMB_USER_PERMISSION_DOCUMENT_PUBLIC_ACCESS,
|
||||
name: 'Document Public Access User Permission',
|
||||
meta: {
|
||||
entityType: 'document',
|
||||
label: 'Public Access',
|
||||
description: 'Allow access to set and change access restrictions for a document',
|
||||
group: 'administration',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'userPermission',
|
||||
alias: UMB_USER_PERMISSION_DOCUMENT_ROLLBACK,
|
||||
name: 'Document Rollback User Permission',
|
||||
meta: {
|
||||
entityType: 'document',
|
||||
label: 'Rollback',
|
||||
description: 'Allow access to roll back a document to a previous state',
|
||||
group: 'administration',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const granularPermissions: Array<ManifestUserGranularPermission> = [
|
||||
|
||||
@@ -12,6 +12,7 @@ const permissions: Array<ManifestUserPermission> = [
|
||||
entityType: 'media',
|
||||
label: 'Move',
|
||||
description: 'Allow access to move media items',
|
||||
group: 'structure',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -22,6 +23,7 @@ const permissions: Array<ManifestUserPermission> = [
|
||||
entityType: 'media',
|
||||
label: 'Copy',
|
||||
description: 'Allow access to copy a media item',
|
||||
group: 'structure',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user