projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some more refactoring.
[timetracker.git]
/
admin_teams.php
diff --git
a/admin_teams.php
b/admin_teams.php
index
a1f848a
..
7d2b3df
100644
(file)
--- a/
admin_teams.php
+++ b/
admin_teams.php
@@
-27,16
+27,15
@@
// +----------------------------------------------------------------------+
require_once('initialize.php');
// +----------------------------------------------------------------------+
require_once('initialize.php');
-import('form.Form');
-import('ttTeamHelper');
+import('ttGroupHelper');
// Access check.
// Access check.
-if (!ttAccess
Check(right_administer_site
)) {
+if (!ttAccess
Allowed('administer_site'
)) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
-$smarty->assign('teams', tt
TeamHelper::getTeam
s());
-$smarty->assign('title', $i18n->get
Key
('title.teams'));
+$smarty->assign('teams', tt
GroupHelper::getTopGroup
s());
+$smarty->assign('title', $i18n->get('title.teams'));
$smarty->assign('content_page_name', 'admin_teams.tpl');
$smarty->display('index.tpl');
$smarty->assign('content_page_name', 'admin_teams.tpl');
$smarty->display('index.tpl');