add validation to personal lock by role (#226)

Co-authored-by: EdwinBetanc0urt <EdwinBetanc0urt@hotmail.com>
pull/3759/head
Leonel Matos 2020-01-20 16:03:16 -04:00 committed by Yamel Senih
parent 371387dd92
commit 8425f1c965
3 changed files with 7 additions and 1 deletions

View File

@ -161,6 +161,9 @@ export const contextMixin = {
}, },
metadataReport() { metadataReport() {
return this.$store.getters.getCachedReport(this.$route.params.instanceUuid) return this.$store.getters.getCachedReport(this.$route.params.instanceUuid)
},
isPersonalLock() {
return this.$store.getters['user/getIsPersonalLock']
} }
}, },
watch: { watch: {

View File

@ -778,7 +778,7 @@ const data = {
userUuid userUuid
}) })
.then(privateAccessResponse => { .then(privateAccessResponse => {
if (isEmptyValue(privateAccessResponse.recordId)) { if (isEmptyValue(privateAccessResponse.recordId) || privateAccessResponse !== recordId) {
return { return {
isLocked: false, isLocked: false,
tableName, tableName,

View File

@ -267,6 +267,9 @@ const getters = {
}, },
getUserUuid: (state) => { getUserUuid: (state) => {
return state.userUuid return state.userUuid
},
getIsPersonalLock: (state) => {
return state.rol.isPersonalLock
} }
} }