Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed lint
Browse files Browse the repository at this point in the history
yeniatencio committed Dec 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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();

0 comments on commit 9733d80

Please sign in to comment.