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

add edit link, closes #3451

Closes #3451

Merge request studip/studip!2345
parent 66518ee5
No related branches found
No related tags found
No related merge requests found
......@@ -344,17 +344,23 @@ class Resources_RoomPlanningController extends AuthenticatedController
);
}
}
if($GLOBALS['perm']->have_perm('admin')) {
if ($this->resource instanceof Room) {
$actions->addLink(
_('Raumeigenschaften anzeigen'),
URLHelper::getURL(
'dispatch.php/resources/room/index/' . $this->resource->id
),
Icon::create('link-intern'),
['data-dialog' => 'size=auto']
);
}
if ($GLOBALS['perm']->have_perm('admin') && $this->resource instanceof Room) {
$actions->addLink(
_('Bearbeiten'),
URLHelper::getURL(
'dispatch.php/resources/room/edit/' . $this->resource->id
),
Icon::create('edit'),
['data-dialog' => 'size=auto']
);
$actions->addLink(
_('Raumeigenschaften anzeigen'),
URLHelper::getURL(
'dispatch.php/resources/room/index/' . $this->resource->id
),
Icon::create('link-intern'),
['data-dialog' => 'size=auto']
);
}
}
$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