X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=time.php;h=d4caad2b171ff96a1389077daa0feda6426e568f;hb=4d16598799828cd01d430bf8cb78aeaf955af31e;hp=24cc7c8ae10cb80bd34d8ce5a59b38b381c4be77;hpb=45c855269d952873285f7a835e82fc2b3eff3971;p=timetracker.git diff --git a/time.php b/time.php index 24cc7c8a..d4caad2b 100644 --- a/time.php +++ b/time.php @@ -347,7 +347,7 @@ if ($request->isPost()) { } } elseif ($request->getParameter('onBehalfUser')) { - if($user->canManageTeam()) { + if($user->can('track_time')) { unset($_SESSION['behalf_id']); unset($_SESSION['behalf_name']);