Skip to content
Snippets Groups Projects
Commit 39b6263f authored by David Siegfried's avatar David Siegfried
Browse files

Merge branch 'biest-53' into 'main'

hide booking-plan-icon if the user has no rights

Closes #53

See merge request studip/studip!10
parents 821e99df 2900f24d
No related branches found
No related tags found
No related merge requests found
...@@ -31,18 +31,20 @@ ...@@ -31,18 +31,20 @@
['target' => '_blank'] ['target' => '_blank']
); );
} else { } else {
$actions->addLink( if ($room->booking_plan_is_public && Config::get()->RESOURCES_SHOW_PUBLIC_ROOM_PLANS) {
$room->getActionLink('booking_plan'), $actions->addLink(
_('Belegungsplan'), $room->getActionLink('booking_plan'),
Icon::create('timetable'), _('Belegungsplan'),
['data-dialog' => 'size=big'] Icon::create('timetable'),
); ['data-dialog' => 'size=big']
$actions->addLink( );
$room->getActionLink('semester_plan'), $actions->addLink(
_('Semesterbelegung'), $room->getActionLink('semester_plan'),
Icon::create('timetable'), _('Semesterbelegung'),
['data-dialog' => 'size=big'] Icon::create('timetable'),
); ['data-dialog' => 'size=big']
);
}
} }
if ($room->requestable && $room->userHasRequestRights($current_user)) { if ($room->requestable && $room->userHasRequestRights($current_user)) {
$actions->addLink( $actions->addLink(
......
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