UI: Fix CKS cluster creation templates listing for non admins

This commit is contained in:
Nicolas Vazquez 2024-05-28 12:51:31 -03:00 committed by nvazquez
parent 97aa35a705
commit 7cf7f1f1b8
No known key found for this signature in database
GPG Key ID: 656E1BCC8CB54F84
1 changed files with 4 additions and 1 deletions

View File

@ -565,9 +565,12 @@ export default {
}
})
},
isAdminOrDomainAdmin () {
return ['Admin', 'DomainAdmin'].includes(this.$store.getters.userInfo.roletype)
},
fetchCksTemplates () {
const params = {
templatefilter: 'all',
templatefilter: this.isAdminOrDomainAdmin() ? 'all' : 'self',
forcks: true
}
this.templateLoading = true