Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Datahub
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
93
Issues
93
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ICAT
Datahub
Commits
dc6f6064
Commit
dc6f6064
authored
Sep 02, 2020
by
Axel Bocciarelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix regression in anonymous user detection
parent
b8ce1662
Pipeline
#32611
passed with stages
in 7 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/reducers/login.js
src/reducers/login.js
+4
-1
No files found.
src/reducers/login.js
View file @
dc6f6064
...
...
@@ -5,6 +5,7 @@ import {
LOG_IN
,
LOG_OUT
,
}
from
'
../constants/actionTypes
'
;
import
ICAT
from
'
../config/icat
'
;
const
initialState
=
{
username
:
null
,
...
...
@@ -42,7 +43,9 @@ const user = (state = initialState, action) => {
.
format
(),
name
:
action
.
name
,
fullName
:
action
.
fullName
,
isAnonymous
:
action
.
fullName
===
'
Anonymous
'
,
isAnonymous
:
ICAT
.
authentication
.
anonymous
.
enabled
&&
state
.
username
===
ICAT
.
authentication
.
anonymous
.
username
,
isAdministrator
:
action
.
isAdministrator
,
};
break
;
...
...
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