validate personal lock by role (#248)

pull/3759/head
Leonel Matos 2020-01-22 17:32:00 -04:00 committed by Yamel Senih
parent 16e988cc6a
commit 758fc12796
1 changed files with 34 additions and 32 deletions

View File

@ -612,6 +612,7 @@ export const contextMixin = {
})
},
validatePrivateAccess({ isLocked, tableName, recordId }) {
if (this.isPersonalLock) {
if (isLocked) {
this.actions = this.actions.map(actionItem => {
if (actionItem.action === 'unlockRecord') {
@ -650,3 +651,4 @@ export const contextMixin = {
}
}
}
}