Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yeniatencio committed Dec 10, 2024
1 parent 453097a commit 9733d80
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 @@ -159,7 +159,7 @@ function tide_media_preprocess_field(&$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 9733d80

Please sign in to comment.