Skip to content

Commit

Permalink
Merge pull request #33 from OrifInformatique/fix-buttons-links
Browse files Browse the repository at this point in the history
Fix time links trying to access AdminLogs on user-groups from registered users
  • Loading branch information
DidierViret committed Jul 10, 2024
2 parents 1b4518f + 8f763a4 commit e3fc6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orif/timbreuse/Controllers/PersoLogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ protected function create_buttons(string $period, $timUserId = null): array
if (filter_var($lastSegment, FILTER_VALIDATE_INT) !== false) {
$path = "AdminLogs/time_list/$timUserId";
} else {
if (url_is('*get_plannings_list') || url_is('*event-plannings') || url_is('*PersoLogs/perso_time*')) {
if (url_is('*get_plannings_list') || url_is('*event-plannings') || url_is('*PersoLogs/perso_time*') || url_is('*user-groups*')) {
$path = "PersoLogs/perso_time";
} else {
$path = "AdminLogs/time_list/$timUserId";
Expand Down

0 comments on commit e3fc6af

Please sign in to comment.