Skip to content

Commit

Permalink
Fix time links trying to access AdminLogs on user-groups from registe…
Browse files Browse the repository at this point in the history
…red user
  • Loading branch information
catdesu committed Jul 10, 2024
1 parent 1b4518f commit 8f763a4
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 8f763a4

Please sign in to comment.