projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A bit of ongoing cleanup after roles revamp.
[timetracker.git]
/
mobile
/
index.php
diff --git
a/mobile/index.php
b/mobile/index.php
index
de48595
..
fa3f04c
100644
(file)
--- a/
mobile/index.php
+++ b/
mobile/index.php
@@
-30,13
+30,12
@@
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');
header('Location: ../reports.php');
- exit();
+ exit();
}
}
// Redirect to time.php or mobile/time.php for other roles.
}
}
// Redirect to time.php or mobile/time.php for other roles.