projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Finished improving access checks by providing separate error msg for disabled features.
[timetracker.git]
/
mobile
/
index.php
diff --git
a/mobile/index.php
b/mobile/index.php
index
1c7cf23
..
9b2ed53
100644
(file)
--- a/
mobile/index.php
+++ b/
mobile/index.php
@@
-30,7
+30,7
@@
require_once('../initialize.php');
// Redirects for admin and client roles.
if ($auth->isAuthenticated()) {
- if ($user->
isAdmin(
)) {
+ if ($user->
can('administer_site'
)) {
header('Location: ../admin_teams.php');
exit();
} elseif ($user->isClient()) {