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

add consultation routes

Closes #1149

Merge request studip/studip!686
parent f345a34d
No related branches found
No related tags found
No related merge requests found
......@@ -55,17 +55,8 @@ class ConsultationNavigation extends Navigation
return;
}
if ($this->range instanceof User) {
// Permissions that are allowed to book reservervations
$allowed = ['user', 'autor', 'tutor'];
if (Config::get()->CONSULTATION_ALLOW_DOCENTS_RESERVING) {
$allowed[] = 'dozent';
}
// User does not have required permissions
if (!in_array($GLOBALS['user']->perms, $allowed)) {
return null;
}
if (!ConsultationBooking::userMayCreateBookingForRange($this->range, User::findCurrent())) {
return;
}
// Create visitor navigation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment