Errors are not displaying when standard user attempts to create a project with non-default Pod Security Policy (#6278)

This commit is contained in:
Neil MacDougall 2022-07-08 17:40:20 +01:00 committed by GitHub
parent 5dcdbd29cb
commit 886238dea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export default class Project extends HybridModel {
const newValue = await norman.save({ replace: forceReplaceOnReq });
newValue.doAction('setpodsecuritypolicytemplate', { podSecurityPolicyTemplateId: this.spec.podSecurityPolicyTemplateId || null });
await newValue.doAction('setpodsecuritypolicytemplate', { podSecurityPolicyTemplateId: this.spec.podSecurityPolicyTemplateId || null });
await this.$dispatch('management/findAll', { type: MANAGEMENT.PROJECT, opt: { force: true } }, { root: true });