Skip to content
Snippets Groups Projects
Commit 6508a634 authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Use exceptions instead of checking for null to send correct http code

If a session was not found in database this will result in http 404,
if the session is not accessable for the current user the request will
result in http 403.

The old behavior was to check for null. This was the response if the
session was not found or the current user could not access this session
(not owner and inactive sessions). Both ended up with http 404 - not found.
parent 1a847feb
Branches
Tags
No related merge requests found
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