add validation to personal lock by role (#226)
Co-authored-by: EdwinBetanc0urt <EdwinBetanc0urt@hotmail.com>pull/3759/head
parent
371387dd92
commit
8425f1c965
|
@ -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: {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -267,6 +267,9 @@ const getters = {
|
||||||
},
|
},
|
||||||
getUserUuid: (state) => {
|
getUserUuid: (state) => {
|
||||||
return state.userUuid
|
return state.userUuid
|
||||||
|
},
|
||||||
|
getIsPersonalLock: (state) => {
|
||||||
|
return state.rol.isPersonalLock
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue