Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
6d09b1ef
Commit
6d09b1ef
authored
12 years ago
by
Julian Hochstetter
Browse files
Options
Downloads
Patches
Plain Diff
return null and then 404 if session is not found
parent
14fd1ec8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+3
-0
3 additions, 0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
with
3 additions
and
0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+
3
−
0
View file @
6d09b1ef
...
@@ -147,6 +147,9 @@ public class CouchDBDao implements IDatabaseDao {
...
@@ -147,6 +147,9 @@ public class CouchDBDao implements IDatabaseDao {
@Override
@Override
public
Session
getSession
(
String
keyword
)
{
public
Session
getSession
(
String
keyword
)
{
Session
result
=
this
.
getSessionFromKeyword
(
keyword
);
Session
result
=
this
.
getSessionFromKeyword
(
keyword
);
if
(
result
==
null
)
{
return
null
;
}
if
(
result
.
isActive
()
||
result
.
getCreator
().
equals
(
this
.
actualUserName
()))
{
if
(
result
.
isActive
()
||
result
.
getCreator
().
equals
(
this
.
actualUserName
()))
{
sessionService
.
addUserToSessionMap
(
this
.
actualUserName
(),
keyword
);
sessionService
.
addUserToSessionMap
(
this
.
actualUserName
(),
keyword
);
return
result
;
return
result
;
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment