Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
8545452c
Commit
8545452c
authored
Oct 15, 2020
by
gj4210
👽
Browse files
FIX: Check if role selection is valid
parent
3bec7d1a
Pipeline
#113342
passed with stages
in 8 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/views/netdb/Tokens.vue
View file @
8545452c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment