Skip to content

Commit

Permalink
add missing user permissions + add groups
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Sep 26, 2023
1 parent 6fa7c06 commit 630f5a1
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
72 changes: 72 additions & 0 deletions src/packages/documents/documents/user-permissions/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> = [
{
Expand Down Expand Up @@ -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> = [
Expand Down
2 changes: 2 additions & 0 deletions src/packages/media/media/user-permissions/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const permissions: Array<ManifestUserPermission> = [
entityType: 'media',
label: 'Move',
description: 'Allow access to move media items',
group: 'structure',
},
},
{
Expand All @@ -22,6 +23,7 @@ const permissions: Array<ManifestUserPermission> = [
entityType: 'media',
label: 'Copy',
description: 'Allow access to copy a media item',
group: 'structure',
},
},
];
Expand Down

0 comments on commit 630f5a1

Please sign in to comment.