Skip to content

Commit 72c298a

Browse files
shwstppryadvr
authored andcommitted
src: template/iso listing User role regression (#654)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 3f9ef02 commit 72c298a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ui/src/views/AutogenView.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,12 @@ export default {
476476
if (this.$route.meta.params) {
477477
Object.assign(params, this.$route.meta.params)
478478
}
479-
if ('templatefilter' in params && this.routeName === 'template') {
479+
if (['Admin', 'DomainAdmin'].includes(this.$store.getters.userInfo.roletype) &&
480+
'templatefilter' in params && this.routeName === 'template') {
480481
params.templatefilter = 'all'
481482
}
482-
if ('isofilter' in params && this.routeName === 'iso') {
483+
if (['Admin', 'DomainAdmin'].includes(this.$store.getters.userInfo.roletype) &&
484+
'isofilter' in params && this.routeName === 'iso') {
483485
params.isofilter = 'all'
484486
}
485487
if (Object.keys(this.$route.query).length > 0) {

0 commit comments

Comments
 (0)