UBERF-6486 Lock document content (#5799)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2024-06-13 13:27:59 +07:00
committed by GitHub
parent bf969fb27d
commit a409cfafb3
13 changed files with 142 additions and 9 deletions
+12 -3
View File
@@ -40,10 +40,18 @@ export default mergeIds(documentId, document, {
actionImpl: {
CreateChildDocument: '' as ViewAction,
CreateDocument: '' as ViewAction,
EditTeamspace: '' as ViewAction
EditTeamspace: '' as ViewAction,
LockContent: '' as ViewAction,
UnlockContent: '' as ViewAction
},
action: {
PublicLink: '' as Ref<Action<Doc, any>>
PublicLink: '' as Ref<Action<Doc, any>>,
LockContent: '' as Ref<Action<Doc, any>>,
UnlockContent: '' as Ref<Action<Doc, any>>
},
function: {
CanLockDocument: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
CanUnlockDocument: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>
},
viewlet: {
TeamspaceTable: '' as Ref<Viewlet>
@@ -55,6 +63,7 @@ export default mergeIds(documentId, document, {
string: {
ConfigDescription: '' as IntlString,
ParentDocument: '' as IntlString,
ChildDocument: '' as IntlString
ChildDocument: '' as IntlString,
LockedBy: '' as IntlString
}
})