Skip to content

boomerdigital/solidus_user_roles

Repository files navigation

SolidusUserRoles

CircleCI

SolidusUserRoles gives an admin the ability to create custom roles for their employees to restrict or allow access to certain sections in the admin panel.

Installation

Add solidus_user_roles to your Gemfile:

gem 'solidus_user_roles', github: 'boomerdigital/solidus_user_roles'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g solidus_user_roles:install

Remember to seed or run:

rake solidus_user_roles:load_seeds

Admin Panel

An admin is the only user who has the ability to add or remove roles from other users. image image image

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'solidus_user_roles/factories'

Copyright (c) 2016 [name of extension creator], released under the New BSD License