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 stock transfer permissions to view stock transfers to/from from viewable stock locations. #504

Merged
merged 1 commit into from
Nov 19, 2015
Merged

Allow stock transfer permissions to view stock transfers to/from from viewable stock locations. #504

merged 1 commit into from
Nov 19, 2015

Conversation

athal7
Copy link
Contributor

@athal7 athal7 commented Nov 12, 2015

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
Copy link
Contributor

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?

@athal7
Copy link
Contributor Author

athal7 commented Nov 12, 2015

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.

@athal7
Copy link
Contributor Author

athal7 commented Nov 16, 2015

ping @jhawthorn @gmacdougall

@gmacdougall
Copy link
Member

I echo the comments that @jordan-brough had around being confused why StockTransferDisplay permissions need the ability to transfer_from and transfer_to.

@jhawthorn jhawthorn removed their assignment Nov 17, 2015
@jhawthorn
Copy link
Contributor

I also agree that transfer_from and transfer_to doesn't make sense for the "display" permission. Seems to me that the controller, or at possibly the view is should be checking the display permission instead.

… 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.
@athal7 athal7 changed the title Allow stock transfer permissions to transfer to/from stock locations. Allow stock transfer permissions to view stock transfers to/from from viewable stock locations. Nov 19, 2015
@athal7
Copy link
Contributor Author

athal7 commented Nov 19, 2015

@jordan-brough @gmacdougall @jhawthorn updated, hopefully this is more what you had in mind

@jordan-brough
Copy link
Contributor

nice. 👍

@jordan-brough
Copy link
Contributor

Btw, do we need any kind of release note or anything around the renaming? (I really don't know, just asking)

@jhawthorn
Copy link
Contributor

Great 👍 I think this is good to go.

@athal7
Copy link
Contributor Author

athal7 commented Nov 19, 2015

@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

athal7 pushed a commit that referenced this pull request Nov 19, 2015
Allow stock transfer permissions to view stock transfers to/from from viewable stock locations.
@athal7 athal7 merged commit 3172ab3 into solidusio:master Nov 19, 2015
@athal7 athal7 deleted the stock-transfer-permissions branch November 19, 2015 23:22
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.

4 participants