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

Permissions for spree_html_invoice #54

Open
ducl13 opened this issue Nov 14, 2018 · 0 comments
Open

Permissions for spree_html_invoice #54

ducl13 opened this issue Nov 14, 2018 · 0 comments

Comments

@ducl13
Copy link

ducl13 commented Nov 14, 2018

I'm trying to use this extension to restrict access to the Print Invoice feature from this extension http://vinsol.com/spreecommerce-html-invoices

Right now, there is no restriction access on the Print Invoice which if of the format:

http://localhost:3000/admin/invoice/R120687455/invoice

The controller/action for the above is:

https://github.com/vinsol-spree-contrib/spree-html-invoice/blob/master/app/controllers/spree/admin/invoice_controller.rb

Anyone can access that URL even if they are not logged on. I copied that URL as an admin (in Chrome). Then open a different browser window (in Safari) without logging in to frontend/backend.

I tried to configured this extension in the backend with the following permissions but nothing seem to work.

can-admin-spree/invoice
can-admin-spree/admin/invoice
can-manage-spree/invoice
can-manage-spree/admin/invoice
can-show-spree/invoice
can-show-spree/admin/invoice

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

1 participant