Make notes editable only on user profile
This commit is contained in:
parent
a35fa29a6b
commit
2e25120192
5 changed files with 11 additions and 6 deletions
|
|
@ -40,7 +40,8 @@ export default {
|
|||
'rounded',
|
||||
'bordered',
|
||||
'avatarAction', // default - open profile, 'zoom' - zoom, function - call function
|
||||
'onClose'
|
||||
'onClose',
|
||||
'hasNoteEditor'
|
||||
],
|
||||
data () {
|
||||
return {
|
||||
|
|
@ -130,6 +131,9 @@ export default {
|
|||
const privileges = this.loggedIn.privileges
|
||||
return this.loggedIn.role === 'admin' || privileges.includes('users_manage_activation_state') || privileges.includes('users_delete') || privileges.includes('users_manage_tags')
|
||||
},
|
||||
hasNote () {
|
||||
return this.relationship.note
|
||||
},
|
||||
supportsNote () {
|
||||
return 'note' in this.relationship
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue