Skip to content
Snippets Groups Projects
Commit 1a658e67 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix regression from 0d95625c, re #957

parent 5af592eb
No related branches found
No related tags found
No related merge requests found
...@@ -219,12 +219,8 @@ class Seminar_Perm ...@@ -219,12 +219,8 @@ class Seminar_Perm
{ {
$pageperm = $this->permissions[$perm] ?? 0; $pageperm = $this->permissions[$perm] ?? 0;
$userperm = $this->permissions[$this->get_studip_perm($range_id, $user_id)] ?? 0; $userperm = $this->permissions[$this->get_studip_perm($range_id, $user_id)] ?? 0;
if ($userperm) {
return $pageperm <= $userperm; return $pageperm <= $userperm;
} else {
//The user has no permissions at all.
return false;
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment