Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow editors to switch language #2454

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Apr 2, 2023

What is this pull request for?

I have a multi-language site with an editor user, and they're not able to switch to another language without this patch.

Not sure whether switching languages should at all be protected by CanCanCan; maybe it's a good idea to just skip the authorize_resource before action on the Alchemy::Admin::LanguagesController#switch instead.

I'm also not sure about all the other roles. Should they be able to switch language?

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

I have a multi-language site with an editor user, and they're not able
to switch to another language without this patch.

Not sure whether switching languages should at all be protected by
CanCanCan; maybe it's a good idea to just skip the authorize_resource
before action on the Alchemy::Admin::LanguagesController#switch instead.

I'm also not sure about all the other roles. Should they be able to
switch language?
@mamhoff mamhoff merged commit 2d173d3 into AlchemyCMS:main Apr 5, 2023
@mamhoff mamhoff deleted the allow-editors-to-switch-language branch April 5, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants