X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=roles.php;h=cd17da3c48cc5aa9bd695a18822abb07a32708b9;hb=HEAD;hp=fe68329d36c27caba68a48bac622e5850a6068e0;hpb=2908e17af44b65d6a97e299edd03293ddd802802;p=timetracker.git diff --git a/roles.php b/roles.php index fe68329d..cd17da3c 100644 --- a/roles.php +++ b/roles.php @@ -36,19 +36,8 @@ if (!ttAccessAllowed('manage_roles')) { header('Location: access_denied.php'); exit(); } -$group_id = (int)$request->getParameter('group_id'); -if ($group_id && !$user->isGroupValid($group_id)) { - header('Location: access_denied.php'); - exit(); -} // End of access checks. -if ($group_id) { - // We are passed a valid group_id (most likely from group_edit.php). - // Set on behalf group accordingly. - $user->setOnBehalfGroup($group_id); -} - $smarty->assign('active_roles', ttTeamHelper::getActiveRolesForUser()); $smarty->assign('inactive_roles', ttTeamHelper::getInactiveRolesForUser()); $smarty->assign('title', $i18n->get('title.roles'));