Skip to content

Commit

Permalink
fix some minor problems
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Jun 28, 2018
1 parent a4d917b commit 5de9dc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions MeetingPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,12 @@ public function getTabNavigation($courseId)
PluginEngine::getURL($this, [], 'index')
));

$main->addSubNavigation('config', new Navigation(
_('Anpassen'),
PluginEngine::getLink($this, [], 'index/config')
));
if ($GLOBALS['perm']->have_studip_perm('dozent', $courseId)) {
$main->addSubNavigation('config', new Navigation(
_('Anpassen'),
PluginEngine::getLink($this, [], 'index/config')
));
}

return array(self::NAVIGATION_ITEM_NAME => $main);
}
Expand Down
2 changes: 1 addition & 1 deletion migrations/004_create_default_driver_option.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function description()
function up()
{
$db = DBManager::get();
$db->exec('INSERT INTO
$db->exec('INSERT IGNORE INTO
config
SET
field = "VC_DRIVER",
Expand Down

0 comments on commit 5de9dc9

Please sign in to comment.