Skip to content
Snippets Groups Projects
Commit 0af7f4d4 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

revert part of a8c80c52, re studip/studip#4578

parent 745de99b
No related branches found
No related tags found
No related merge requests found
......@@ -500,8 +500,8 @@ class Visibility
*/
private static function getUser(&$user)
{
if (!$user && User::findCurrent()) {
$user = User::findCurrent()->id;
if ($user == null) {
$user = $GLOBALS['user']->user_id;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment