Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yeniatencio committed Dec 10, 2024
1 parent 8e5a65a commit 9faf605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tide_media/tide_media.module
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ function tide_media_preprocess_page(&$variables) {
$roles = $current_user->getRoles();

if ($route_name === 'entity.user.edit_form' && in_array('secure_file_user', $roles)) {
$url = \Drupal\Core\Url::fromRoute('entity.user.canonical', ['user' => $current_user->id()]);
$url = Url::fromRoute('entity.user.canonical', ['user' => $current_user->id()]);
$response = new RedirectResponse($url->toString());
$response->send();
exit();
Expand Down

0 comments on commit 9faf605

Please sign in to comment.