Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
39458184
Commit
39458184
authored
Nov 05, 2018
by
Francesc Guasch
Browse files
wip(auth): fixed edge case with no access entries
issue #916
parent
51e1e7dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
rvd_front.pl
View file @
39458184
...
...
@@ -734,7 +734,7 @@ get '/list_ldap_access/(#id_domain)' => sub {
my
@ldap_access
=
$domain
->
list_ldap_access
();
my
$default
=
{};
if
(
$ldap_access
[
-
1
]
->
{
value
}
eq
'
*
')
{
if
(
scalar
@ldap_access
&&
$ldap_access
[
-
1
]
->
{
value
}
eq
'
*
')
{
$default
=
pop
@ldap_access
;
}
return
$c
->
render
(
json
=>
{
list
=>
\
@ldap_access
,
default
=>
$default
}
);
...
...
Write
Preview
Supports
Markdown
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