Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
refactor: get roles / permissions directly from group(s), not user object #6031
refactor: get roles / permissions directly from group(s), not user object #6031
Changes from 50 commits
b3efdc1
b6324a3
325a193
e3d1098
25a603f
4b7aba1
3ff8712
e0bd15f
d91a45c
9836daf
78ef3ef
cf07c80
2b185f8
1568642
0584997
d3732a5
89c69df
a173799
49f3c29
20d93b2
b705751
eddda56
9c0c14b
e579d51
2b1c08c
67cc089
0c961cb
672ddea
dd9c148
d19d881
c08ae8b
8121d6f
2e9b7f8
97a69b0
ddea6c1
2e593d6
ffd6769
ab5e7a0
d97e22b
957fe31
a9c7ac3
22e4566
77fb9bb
c4ccfd9
aef626b
99e1d1f
6954076
750958a
a480fd4
dd27500
91bae0f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you are planning to tackle this later, but I'd like to see "owner" go away as a permission and instead just give the first user "create" permission for "shops" as well as maybe a global "update:settings" permission.
So I guess that would mean there should be a global permission group (role) auto-created called "owner" which should have these two permissions, and the first account should be placed in that group upon creation (here)?
As is, this is putting them in a shop-specific group, which we actually may not need to do here (unless there's a specific invite). It seems like part of
createShop
mutation should put the creator account into that shop's owner group. Then after that invites and groups are done explicitly by that first shop user.Yikes, I should probably draw this out in a diagram.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this isn't new in this PR, so we can fix in a subsequent PR if you want.
This file was deleted.