Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Administrator
m4lab_landing_page
Commits
ddf9abba
Commit
ddf9abba
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
removed userIsAuthenticated
parent
670f1b27
Pipeline
#597
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/headfoot.js
+1
-9
js/headfoot.js
js/headfootLogout.js
+1
-9
js/headfootLogout.js
with
2 additions
and
18 deletions
+2
-18
js/headfoot.js
+
1
-
9
View file @
ddf9abba
...
...
@@ -99,15 +99,7 @@ function head(){
for
(
let
k
=
0
;
k
<
menu
[
j
].
combos
.
length
;
k
++
){
let
combolink
=
document
.
createElement
(
'
a
'
);
combolink
.
classList
.
add
(
"
dropdown-item
"
);
if
(
userAuthenticated
()
||
typeof
user
!==
'
undefined
'
){
//either logged in the old way or logged in using SAML
if
(
menu
[
j
].
combos
[
k
].
link
.
includes
(
'
?
'
)){
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
+
"
&isAuthenticatedUser=true
"
;
}
else
{
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
+
"
?isAuthenticatedUser=true
"
;
}
}
else
{
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
;
}
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
;
combolink
.
innerHTML
=
menu
[
j
].
combos
[
k
].
name
;
combodiv
.
appendChild
(
combolink
);
}
...
...
This diff is collapsed.
Click to expand it.
js/headfootLogout.js
+
1
-
9
View file @
ddf9abba
...
...
@@ -98,15 +98,7 @@ function head(){
for
(
let
k
=
0
;
k
<
menu
[
j
].
combos
.
length
;
k
++
){
let
combolink
=
document
.
createElement
(
'
a
'
);
combolink
.
classList
.
add
(
"
dropdown-item
"
);
if
(
userAuthenticated
()
||
typeof
user
!==
'
undefined
'
){
//either logged in the old way or logged in using SAML
if
(
menu
[
j
].
combos
[
k
].
link
.
includes
(
'
?
'
)){
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
+
"
&isAuthenticatedUser=true
"
;
}
else
{
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
+
"
?isAuthenticatedUser=true
"
;
}
}
else
{
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
;
}
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
;
combolink
.
innerHTML
=
menu
[
j
].
combos
[
k
].
name
;
combodiv
.
appendChild
(
combolink
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets