Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
19a3fd55
Commit
19a3fd55
authored
4 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Plain Diff
Merge branch 'f-deactivate-user' into 'dev'
F deactivate user See merge request caosdb/caosdb-server!71
parents
0061d983
0221d97b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/main/java/org/caosdb/server/resource/UserResource.java
+4
-6
4 additions, 6 deletions
src/main/java/org/caosdb/server/resource/UserResource.java
with
5 additions
and
6 deletions
CHANGELOG.md
+
1
−
0
View file @
19a3fd55
...
...
@@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
*
Bug: When the user password is updated the user is deactivated.
*
Semi-fixed a bug which occurs when retrieving old versions of entities which
reference entities which have been deleted in the mean time. The current fix
adds a warning message to the reference property in question and sets the
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/caosdb/server/resource/UserResource.java
+
4
−
6
View file @
19a3fd55
...
...
@@ -99,13 +99,11 @@ public class UserResource extends AbstractCaosDBServerResource {
:
UserSources
.
guessRealm
(
username
));
final
String
password
=
form
.
getFirstValue
(
"password"
);
final
String
email
=
form
.
getFirstValue
(
"email"
);
final
UserStatus
status
=
UserStatus
.
valueOf
(
form
.
getFirstValue
(
"status"
,
CaosDBServer
.
getServerProperty
(
ServerProperties
.
KEY_NEW_USER_DEFAULT_ACTIVITY
))
.
toUpperCase
());
form
.
getFirstValue
(
"status"
)
!=
null
?
UserStatus
.
valueOf
(
form
.
getFirstValue
(
"status"
).
toUpperCase
())
:
null
;
Integer
userEntity
=
null
;
if
(
form
.
getFirst
(
"entity"
)
!=
null
)
{
if
(
form
.
getFirstValue
(
"entity"
).
isEmpty
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment