This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new e573d0d Allow users (User accout Role) to delete / archive events
(#5520)
e573d0d is described below
commit e573d0ddcb393342fb3aea6e24ec4e2be5c4286f
Author: Pearl Dsilva <[email protected]>
AuthorDate: Tue Sep 28 18:15:04 2021 +0530
Allow users (User accout Role) to delete / archive events (#5520)
---
ui/src/config/section/event.js | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/ui/src/config/section/event.js b/ui/src/config/section/event.js
index 9dab696..e4e8532 100644
--- a/ui/src/config/section/event.js
+++ b/ui/src/config/section/event.js
@@ -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) }
+ }
}
]
}