projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduced rights for remote work plugin.
[timetracker.git]
/
index.php
diff --git
a/index.php
b/index.php
index
a6eac17
..
cabc706
100644
(file)
--- a/
index.php
+++ b/
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();
}
}
}
}
@@
-77,4
+76,4
@@
if ($mobileBrowser) {
<?php
}
<?php
}
-?>
\ No newline at end of file
+?>