projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactored mobile expenses.php for subgroups.
[timetracker.git]
/
charts.php
diff --git
a/charts.php
b/charts.php
index
adaa8ae
..
6329e14
100644
(file)
--- a/
charts.php
+++ b/
charts.php
@@
-114,10
+114,11
@@
$chart_form = new Form('chartForm');
// User dropdown. Changes the user "on behalf" of whom we are working.
if ($user->can('view_charts')) {
// User dropdown. Changes the user "on behalf" of whom we are working.
if ($user->can('view_charts')) {
+ $rank = $user->getMaxRankForGroup($user->getGroup());
if ($user->can('view_own_charts'))
if ($user->can('view_own_charts'))
- $options = array('status'=>ACTIVE,'max_rank'=>$
user->rank-1
,'include_self'=>true,'self_first'=>true);
+ $options = array('status'=>ACTIVE,'max_rank'=>$
rank
,'include_self'=>true,'self_first'=>true);
else
else
- $options = array('status'=>ACTIVE,'max_rank'=>$
user->rank-1
);
+ $options = array('status'=>ACTIVE,'max_rank'=>$
rank
);
$user_list = $user->getUsers($options);
if (count($user_list) >= 1) {
$chart_form->addInput(array('type'=>'combobox',
$user_list = $user->getUsers($options);
if (count($user_list) >= 1) {
$chart_form->addInput(array('type'=>'combobox',