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
61645e14
Commit
61645e14
authored
11 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Fix deletion of free text answers (refs #7880)
There was a bug in the session retrieval code causing an exception.
parent
7b764e41
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/services/QuestionService.java
+1
-1
1 addition, 1 deletion
src/main/java/de/thm/arsnova/services/QuestionService.java
with
1 addition
and
1 deletion
src/main/java/de/thm/arsnova/services/QuestionService.java
+
1
−
1
View file @
61645e14
...
...
@@ -382,7 +382,7 @@ public class QuestionService implements IQuestionService {
throw
new
NotFoundException
();
}
User
user
=
userService
.
getCurrentUser
();
Session
session
=
this
.
databaseDao
.
getSessionFrom
I
d
(
question
.
getSession
I
d
());
Session
session
=
this
.
databaseDao
.
getSessionFrom
Keywor
d
(
question
.
getSession
Keywor
d
());
if
(
user
==
null
||
session
==
null
||
!
session
.
isCreator
(
user
))
{
throw
new
UnauthorizedException
();
}
...
...
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