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]
/
mobile
/
index.php
diff --git
a/mobile/index.php
b/mobile/index.php
index
a283665
..
fa3f04c
100644
(file)
--- a/
mobile/index.php
+++ b/
mobile/index.php
@@
-30,11
+30,10
@@
require_once('../initialize.php');
// Redirects for admin and client roles.
if ($auth->isAuthenticated()) {
// Redirects for admin and client roles.
if ($auth->isAuthenticated()) {
- if ($user->
isAdmin(
)) {
- header('Location: ../admin_
team
s.php');
+ if ($user->
can('administer_site'
)) {
+ header('Location: ../admin_
group
s.php');
exit();
exit();
- }
- else if ($user->isClient()) {
+ } elseif ($user->isClient()) {
header('Location: ../reports.php');
exit();
}
header('Location: ../reports.php');
exit();
}