Skip to content
Snippets Groups Projects
Commit 34ad3117 authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Changed exception type to match the default inside this class

parent 99c44807
No related merge requests found
......@@ -508,7 +508,7 @@ public class QuestionService implements IQuestionService {
User user = getCurrentUser();
Session session = getSession(sessionkey);
if (!session.isCreator(user)) {
throw new ForbiddenException();
throw new UnauthorizedException();
}
databaseDao.publishAllQuestions(session, publish);
}
......@@ -519,7 +519,7 @@ public class QuestionService implements IQuestionService {
User user = getCurrentUser();
Session session = getSession(sessionkey);
if (!session.isCreator(user)) {
throw new ForbiddenException();
throw new UnauthorizedException();
}
databaseDao.deleteAllQuestionsAnswers(session);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment