X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=week_view.php;h=0d369bf9bbcd7b7a9db0e7116d8ff5007ca10e0a;hb=223ec69341da525ce2fce640ad5e62b00ec27360;hp=b273d2789c0952c9d581c38ce19bd69f509e038d;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/week_view.php b/week_view.php index b273d278..0d369bf9 100644 --- a/week_view.php +++ b/week_view.php @@ -28,10 +28,9 @@ require_once('initialize.php'); import('form.Form'); -import('ttTeamHelper'); -// Access check. -if (!ttAccessAllowed('manage_advanced_settings') || !$user->isPluginEnabled('wv')) { +// Access checks. +if (!ttAccessAllowed('manage_advanced_settings')) { header('Location: access_denied.php'); exit(); } @@ -55,9 +54,9 @@ $form->addInput(array('type'=>'checkbox','name'=>'notes','value'=>$cl_notes)); $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save'))); if ($request->isPost()){ - if (!ttTeamHelper::enablePlugin('wvn', $cl_week_note) || - !ttTeamHelper::enablePlugin('wvl', $cl_week_list) || - !ttTeamHelper::enablePlugin('wvns', $cl_notes)) { + if (!$user->enablePlugin('wvn', $cl_week_note) || + !$user->enablePlugin('wvl', $cl_week_list) || + !$user->enablePlugin('wvns', $cl_notes)) { $err->add($i18n->get('error.db')); } }