Allow to show info of non direct reports per manager #264 #265 #271
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #264
What is the version of Jorani?
0.6.5
Expected behavior
In the case of more than one level of reporters, allow the top manager to see the vacations of
the different levels (direct and nondirect reports)
Example:
Manager1:
The Manager 1 can see the vacations of the direct reports (first level of collaborators), but not lower levels
It would be handy to allow to see in the Approval->My subordinates, or in the Calendars->My subordinates the different levels.
Ideally this could be triggered by a config flag in config.php (in large organization this could be not viable)
//Set this value to TRUE if you want to allow manager to see the collaborators of the collaboratos
//By default only the immediate collaborators (direct reports) are shown
//(beware that it will impact the performance setting this to TRUE)
$config['manager_sees_multiple_level_collaborators'] = FALSE;
Actual behavior
Only one level of the collaborators are shown.
Steps to reproduce the behavior