This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push:
new a9e65a1 src: template/iso listing User role regression (#654)
a9e65a1 is described below
commit a9e65a1dd81f5179d7a9ea628ca0227f9dd3affc
Author: Abhishek Kumar <[email protected]>
AuthorDate: Wed Sep 2 14:06:19 2020 +0530
src: template/iso listing User role regression (#654)
Signed-off-by: Abhishek Kumar <[email protected]>
---
src/views/AutogenView.vue | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index dbd14b8..6a3ee5d 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -476,10 +476,12 @@ export default {
if (this.$route.meta.params) {
Object.assign(params, this.$route.meta.params)
}
- if ('templatefilter' in params && this.routeName === 'template') {
+ if (['Admin',
'DomainAdmin'].includes(this.$store.getters.userInfo.roletype) &&
+ 'templatefilter' in params && this.routeName === 'template') {
params.templatefilter = 'all'
}
- if ('isofilter' in params && this.routeName === 'iso') {
+ if (['Admin',
'DomainAdmin'].includes(this.$store.getters.userInfo.roletype) &&
+ 'isofilter' in params && this.routeName === 'iso') {
params.isofilter = 'all'
}
if (Object.keys(this.$route.query).length > 0) {