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

Integrate Role and Permission Management from solidus_user_roles (solidus_core step) #5129

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Sep 5, 2023

  1. Add Migrations for Role and Permission Set management

    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.
    rainerdema authored and the-krg committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    2ddd26a View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. Enhance Role model for better role management

    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.
    rainerdema authored and the-krg committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    d13296f View commit details
    Browse the repository at this point in the history
  2. Add task to import current permissions

    This commit introduces a simple rake task that imports the
    Permission Sets to the DB, then iterates over the
    defined permissions on AppConfiguration to create the
    RolePermissions.
    the-krg committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    cc9eb18 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f4e0fd2 View commit details
    Browse the repository at this point in the history