- Issue created by @tregonia
- π§πͺBelgium RandalV
Hi Tregonia,
Thanks for your ticket.
I'll look into this, but I can't promise if and when this could be released.Kind regards,
RandalV
- 4541dae3 committed on 1.0.x
Issue #3400290 by RandalV: Ability to create a "Masquerade as <role>"...
- 4541dae3 committed on 1.0.x
- π§πͺBelgium RandalV
Hi Tregonia,
I've pushed a first attempt to the 1.0.x-dev version β of this module.
Feel free to give it a try, see how it feels and report back with your findings.If the functionality feels well and complete, I'll release it in a new version of the module.
Kind regards,
RandalV
-
RandalV β
committed 67edd576 on 1.0.x
Issue #3400290 by RandalV: Ability to create a "Masquerade as <role>"...
-
RandalV β
committed 67edd576 on 1.0.x
-
RandalV β
committed a03d4c2e on 1.0.x
Issue #3400290 by RandalV: Ability to create a "Masquerade as <role>"...
-
RandalV β
committed a03d4c2e on 1.0.x
- π§πͺBelgium RandalV
Oops. Only saw afterwards that you want to automatically generate it, and not manually by submitting the form.
The last commit on 1.0.x-dev should contain that functionality in the RoleManager service.
\Drupal\msqrole\RoleManagerInterface::generateUrl(array $roles, bool $single_usage = FALSE, array $url_options = []): Url
The arguments are all self explanatory.
Url options you could use to add a destination to the query parameter or something like that.Example usage:
\Drupal::service('msqrole.manager')->generateUrl(['editor', 'visitor'], FALSE, [ 'query' => [ 'destination' => '/path/to/page', ], ];
- Status changed to Needs review
about 1 year ago 6:20pm 19 November 2023 - 0d954076 committed on 1.0.x
Issue #3400290 by RandalV: Ability to create a "Masquerade as <role>"...
- 0d954076 committed on 1.0.x
- 6d2192ee committed on 1.0.x
Issue #3400290 by RandalV: Ability to create a "Masquerade as <role>"...
- 6d2192ee committed on 1.0.x
- π§πͺBelgium RandalV
@Tregonia feel free to take it for a spin and see how it feels.
Either way this will probably be committed in the next release, but I'd rather someone test it out first.
- Status changed to Fixed
9 months ago 12:13pm 26 March 2024 - π§πͺBelgium RandalV
I'm closing this issue, it's been committed to the next release and it seems to work fine.
Automatically closed - issue fixed for 2 weeks with no activity.