forked from solidusio/solidus
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add backend interface for roles management #362
Open
the-krg
wants to merge
8
commits into
rainerd/incorporate-roles-management-code-into-the-core
Choose a base branch
from
the-krg/add-backend-interface-for-roles-management
base: rainerd/incorporate-roles-management-code-into-the-core
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add backend interface for roles management #362
the-krg
wants to merge
8
commits into
rainerd/incorporate-roles-management-code-into-the-core
from
the-krg/add-backend-interface-for-roles-management
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit introduces database schema changes to extend the role and permission management capabilities of Solidus. These changes are derived from the solidus_user_roles gem and are designed to provide more granular control over user roles and permissions. Changes include: * Create Spree Permission Sets: Introduced a new Spree::PermissionSet table in the database. This table will store sets of permissions, each with a name and set identifier, that can be assigned to user roles. * Create Spree Roles Permissions: Introduced a new Spree::RolePermission table in the database. This table will store the associations between roles and permission sets. It includes foreign key references to the Spree::Role and Spree::PermissionSet tables.
This commit expands the functionality of the `Spree::Role` model to provide more granular and efficient control over user roles and permissions. * Spree::RolePermission * Spree::Role enhancements * Spree::PermissionSet These enhancements are a part of our broader initiative to improve the flexibility and extensibility of role and permission management in Solidus, adapting functionality from the `solidus_user_roles` gem.
3 tasks
the-krg
force-pushed
the
the-krg/add-backend-interface-for-roles-management
branch
3 times, most recently
from
August 25, 2023 06:11
3d33731
to
c256d15
Compare
Hey, @the-krg, it looks like tests are failing for some reason... 🙂 |
the-krg
force-pushed
the
the-krg/add-backend-interface-for-roles-management
branch
from
August 25, 2023 13:10
c256d15
to
f2b53ad
Compare
the-krg
force-pushed
the
the-krg/add-backend-interface-for-roles-management
branch
from
August 25, 2023 13:25
f2b53ad
to
8be04a7
Compare
This permission set enables the user to manage roles and read users.
It makes no sense to duplicate a role that can access everything, and another that shouldn't access anything.
the-krg
force-pushed
the
the-krg/add-backend-interface-for-roles-management
branch
from
August 25, 2023 13:36
8be04a7
to
12459fc
Compare
the-krg
force-pushed
the
rainerd/incorporate-roles-management-code-into-the-core
branch
3 times, most recently
from
September 5, 2023 14:24
8d8cbb5
to
9348fe7
Compare
the-krg
force-pushed
the
rainerd/incorporate-roles-management-code-into-the-core
branch
from
September 12, 2023 04:48
9348fe7
to
f4e0fd2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Admin, RoleManagement View (can manage roles)
User Tabs
index
new
edit
UserDisplay, UserManagement View (can read roles)
index
No Permissions (cannot read neither manage roles)
index
Edit User