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

user manages single store #56

Closed
knagode opened this issue Sep 8, 2016 · 2 comments
Closed

user manages single store #56

knagode opened this issue Sep 8, 2016 · 2 comments
Labels

Comments

@knagode
Copy link

knagode commented Sep 8, 2016

Do you think that it would be hard to add role where user could manage single store?

I would like that added product would be visible just to his store, he would see only orders from his store, etc ... Or .. do you think it is better to write new admin for this purpose?

@adammathys
Copy link
Member

It shouldn't be too hard to add the ability to scope stores to specific users. Some of the work required to make that happen was discussed in another PR: #45

It would just be a matter of tweaking some of the permissions to allow a user to only access stores they're associated with as well as adding the table to associate users to stores. (Or if you're looking for a very quick and dirty approach, hard-coding the stores in the permissions associated to a role.)

In any case, there's basically two main components needed:

  1. Associating users to stores. (Preferably a new join table, or could be hard-coded using a new role.)
  2. Adding permission checks based on stores.

The second of which is like to be the more time-consuming task. Since there are a number of different views you'll want to ensure are correctly scoped.

@stale
Copy link

stale bot commented Feb 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 15, 2020
@stale stale bot closed this as completed Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants