mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-24 21:32:24 +02:00
* Apply patch Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com> * Fix merge errors Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com> * Fix drive header Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com> * Fix formatting Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com> * Fix tests Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com> --------- Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
20 lines
605 B
TypeScript
20 lines
605 B
TypeScript
import type { Builder } from '@hcengineering/model'
|
|
import core from '@hcengineering/core'
|
|
import document from '@hcengineering/document'
|
|
|
|
export function definePermissions (builder: Builder): void {
|
|
builder.createDoc(
|
|
core.class.Permission,
|
|
core.space.Model,
|
|
{
|
|
label: document.string.ForbidCreateTeamspacePermission,
|
|
scope: 'workspace',
|
|
txClass: core.class.TxCreateDoc,
|
|
objectClass: document.class.Teamspace,
|
|
forbid: true,
|
|
description: document.string.ForbidCreateTeamspacePermissionDescription
|
|
},
|
|
document.permission.ForbidCreateTeamspace
|
|
)
|
|
}
|