mirror of https://github.com/apache/cloudstack.git
Allow users (User accout Role) to delete / archive events (#5520)
This commit is contained in:
parent
b955b38ccb
commit
e573d0ddcb
|
|
@ -45,9 +45,7 @@ export default {
|
|||
ids: {
|
||||
value: (record) => { return record.id }
|
||||
}
|
||||
},
|
||||
show: (record, store) => { return !['User'].includes(store.userInfo.roletype) },
|
||||
groupShow: (record, store) => { return !['User'].includes(store.userInfo.roletype) }
|
||||
}
|
||||
},
|
||||
{
|
||||
api: 'deleteEvents',
|
||||
|
|
@ -64,9 +62,7 @@ export default {
|
|||
ids: {
|
||||
value: (record) => { return record.id }
|
||||
}
|
||||
},
|
||||
show: (record, store) => { return !['User'].includes(store.userInfo.roletype) },
|
||||
groupShow: (record, store) => { return !['User'].includes(store.userInfo.roletype) }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue