Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boomerdigital/solidus_user_roles
Advanced user roles for Solidus.
https://github.com/boomerdigital/solidus_user_roles
Last synced: 3 months ago
JSON representation
Advanced user roles for Solidus.
- Host: GitHub
- URL: https://github.com/boomerdigital/solidus_user_roles
- Owner: boomerdigital
- License: bsd-3-clause
- Created: 2016-04-06T19:40:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-30T00:19:49.000Z (12 months ago)
- Last Synced: 2024-04-05T11:33:14.759Z (7 months ago)
- Language: Ruby
- Homepage: http://www.boomerdigital.net
- Size: 65.4 KB
- Stars: 17
- Watchers: 6
- Forks: 22
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SolidusUserRoles
=====================[![CircleCI](https://circleci.com/gh/boomerdigital/solidus_user_roles.svg?style=svg)](https://circleci.com/gh/boomerdigital/solidus_user_roles)
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:
```ruby
gem 'solidus_user_roles', github: 'boomerdigital/solidus_user_roles'
```Bundle your dependencies and run the installation generator:
```shell
bundle
bundle exec rails g solidus_user_roles:install
```Remember to seed or run:
```shell
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](https://cloud.githubusercontent.com/assets/6445334/14432566/b90ae0b4-ffd8-11e5-832c-8692dbb437bb.png)
![image](https://cloud.githubusercontent.com/assets/6445334/14432655/0c5c7a84-ffd9-11e5-8463-366fa88b774f.png)
![image](https://cloud.githubusercontent.com/assets/6445334/14432674/22dadc60-ffd9-11e5-97c2-3e9719427140.png)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`.
```shell
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:```ruby
require 'solidus_user_roles/factories'
```Copyright (c) 2016 [name of extension creator], released under the New BSD License