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

setting permission for translations from spree_globalize 3.1 #26

Open
tomsoup opened this issue Apr 23, 2017 · 1 comment
Open

setting permission for translations from spree_globalize 3.1 #26

tomsoup opened this issue Apr 23, 2017 · 1 comment

Comments

@tomsoup
Copy link

tomsoup commented Apr 23, 2017

The spree_globalize gem gives the option to translate model in the admin panel such as products, taxonomies etc.

However, setting can-manage-spree/products doesn't grant permission for managing translation for Spree::Product::Translation and user will get Authorization Failure whenever they try to access that option.

I have also tried can-manage-spree/product/translation to no anvil. Is there any way to grant permission using the pattern in the documentation?

@nimish-mehta
Copy link
Contributor

@tomsoup Try logging the record in base_controller_decorator here. It should give an idea of what the pattern of permission should be. Also did you provide the can-admin-spree/product/translation permission to the user.

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

No branches or pull requests

2 participants