Commit 8545452c authored by gj4210's avatar gj4210 👁
Browse files

FIX: Check if role selection is valid

parent 3bec7d1a
Pipeline #113342 passed with stages
in 8 minutes and 37 seconds
......@@ -748,13 +748,13 @@ export default {
this.updateCanAddRole()
},
updateCanAddRole() {
if (!this.new_system || !this.new_role_name) {
const new_role = this.new_system + '.' + this.new_role_name
if (!this.new_system || !this.new_role_name || !this.assignable_roles_by_fq_name[new_role]) {
this.can_add_role = false
this.cant_add_role_reason = 'System & Rolle auswählen'
return
}
let valid = true
const new_role = this.new_system + '.' + this.new_role_name
this.new_account.roles.forEach(role => {
if (role.fq_name === new_role) {
valid = false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment