An error occurred while fetching the assigned milestone of the selected merge_request.
Decouple session role handling from flourish sessions
Loading
First part of #1277 (closed) (also see #999)
Adds a new function mayRole
to the Session class that uses Role constants instead of strings. When we write new code we can use this one instead of the old may
function. With this, flourish sessions are effectively decoupled from the rest of the code and can be replaced by something else (e.g. Symfony sessions) in the future.
I also removed some lines of code that fix the mini_q_
format of the user picture. Since the new upload api has been online for quite a while, I'm sure that no old user photos are missing this format and the code must be obsolete.
Quite sure. The may
method is used almost everywhere. If this would break anything, we should see immediately.
CHANGELOG.md