-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 stock transfer permissions to view stock transfers to/from from viewable stock locations. #504
Conversation
athal7
commented
Nov 12, 2015
Looks good to me. One question: I'm not very familiar with the Stock Transfer stuff, but is StockTransferDisplay a strange name at all, since it gives you permission to "admin" StockTransfers and "transfer_to"/"transfer_from" StockLocations? Not saying we need to change it, just wondering. What's the meaning of "Display" for us in general in our permissions stuff? |
the 'admin' action is super confusing, and possibly needs a rename. all that 'admin' gives you access to is the top-level nav tab. different from 'manage', which is an alias to access on all actions. |
ping @jhawthorn @gmacdougall |
I echo the comments that @jordan-brough had around being confused why |
yea the naming is a bit confusing, though I'm not sure a better one. Here is the code path: https://github.com/solidusio/solidus/blob/master/backend/app/views/spree/admin/stock_transfers/index.html.erb#L25 -> |
I also agree that |
… viewable stock locations. When given the stock transfer display or stock transfer management permissions, there is a dropdown in admin/stock locations to filter by stock locations, which was filled by the ability to transfer_to or transfer_from a stock location. This change allows people with the stock transfer permission sets to use that feature of stock transfers without having to also have the ability to transfer_to or transfer_from a stock location.
@jordan-brough @gmacdougall @jhawthorn updated, hopefully this is more what you had in mind |
nice. 👍 |
Btw, do we need any kind of release note or anything around the renaming? (I really don't know, just asking) |
Great 👍 I think this is good to go. |
@jordan-brough transfer_to and transfer_from were introduced in 1.1.0.pre https://github.com/athal7/solidus/commit/35e18b3cb68e484c4c7fba7bedd6e89b9a08ff01, so I don't think that is necessary |
Allow stock transfer permissions to view stock transfers to/from from viewable stock locations.