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() {
 | 
			
		||||
      return this.$store.getters.getCachedReport(this.$route.params.instanceUuid)
 | 
			
		||||
    },
 | 
			
		||||
    isPersonalLock() {
 | 
			
		||||
      return this.$store.getters['user/getIsPersonalLock']
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -778,7 +778,7 @@ const data = {
 | 
			
		|||
        userUuid
 | 
			
		||||
      })
 | 
			
		||||
        .then(privateAccessResponse => {
 | 
			
		||||
          if (isEmptyValue(privateAccessResponse.recordId)) {
 | 
			
		||||
          if (isEmptyValue(privateAccessResponse.recordId) || privateAccessResponse !== recordId) {
 | 
			
		||||
            return {
 | 
			
		||||
              isLocked: false,
 | 
			
		||||
              tableName,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -267,6 +267,9 @@ const getters = {
 | 
			
		|||
  },
 | 
			
		||||
  getUserUuid: (state) => {
 | 
			
		||||
    return state.userUuid
 | 
			
		||||
  },
 | 
			
		||||
  getIsPersonalLock: (state) => {
 | 
			
		||||
    return state.rol.isPersonalLock
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue