ecm_rbac_backend 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +35 -0
- data/Rakefile +17 -0
- data/app/assets/javascripts/ecm/rbac/backend/application.js +1 -0
- data/app/assets/javascripts/ecm/rbac/backend/application/dummy.js +0 -0
- data/app/assets/javascripts/ecm_rbac_backend.js +1 -0
- data/app/assets/stylesheets/ecm/rbac/backend/application.css +3 -0
- data/app/assets/stylesheets/ecm/rbac/backend/application/dummy.css +0 -0
- data/app/assets/stylesheets/ecm_rbac_backend.css +3 -0
- data/app/controllers/ecm/rbac/backend/home_controller.rb +6 -0
- data/app/controllers/ecm/rbac/backend/import_default_permissions_service_controller.rb +33 -0
- data/app/controllers/ecm/rbac/backend/permissions_controller.rb +15 -0
- data/app/controllers/ecm/rbac/backend/roles_controller.rb +17 -0
- data/app/controllers/ecm/rbac/backend/users_controller.rb +17 -0
- data/app/helpers/ecm/rbac/backend/application_helper.rb +8 -0
- data/app/policies/ecm/rbac/backend/engine_policy.rb +4 -0
- data/app/policies/ecm/rbac/import_default_permissions_service_policy.rb +4 -0
- data/app/policies/ecm/rbac/permission_policy.rb +4 -0
- data/app/policies/ecm/rbac/role_policy.rb +4 -0
- data/app/policies/ecm/rbac/user_policy.rb +4 -0
- data/app/views/ecm/rbac/backend/import_default_permissions_service/_form.haml +1 -0
- data/app/views/ecm/rbac/backend/permissions/_form.haml +10 -0
- data/app/views/ecm/rbac/backend/permissions/_show.haml +5 -0
- data/app/views/ecm/rbac/backend/permissions/_show_extras.haml +19 -0
- data/app/views/ecm/rbac/backend/permissions/_table.haml +5 -0
- data/app/views/ecm/rbac/backend/roles/_form.haml +10 -0
- data/app/views/ecm/rbac/backend/roles/_show_extras.haml +20 -0
- data/app/views/ecm/rbac/backend/roles/_table.haml +5 -0
- data/app/views/ecm/rbac/backend/users/_form.haml +5 -0
- data/app/views/ecm/rbac/backend/users/_scopes.haml +0 -0
- data/app/views/ecm/rbac/backend/users/_search.haml +1 -0
- data/app/views/ecm/rbac/backend/users/_show.haml +2 -0
- data/app/views/ecm/rbac/backend/users/_show_extras.haml +21 -0
- data/app/views/layouts/ecm/rbac/backend/application.html.erb +14 -0
- data/config/initializers/assets.rb +2 -0
- data/config/locales/de.yml +22 -0
- data/config/rbac.yml +61 -0
- data/config/routes.rb +12 -0
- data/lib/ecm/rbac/backend.rb +9 -0
- data/lib/ecm/rbac/backend/configuration.rb +22 -0
- data/lib/ecm/rbac/backend/engine.rb +9 -0
- data/lib/ecm/rbac/backend/version.rb +7 -0
- data/lib/ecm_rbac_backend.rb +2 -0
- data/lib/generators/ecm/rbac/backend/install/install_generator.rb +33 -0
- data/lib/generators/ecm/rbac/backend/install/templates/initializer.rb +31 -0
- data/lib/generators/ecm/rbac/backend/install/templates/routes.source +4 -0
- data/lib/tasks/ecm/rbac/backend_tasks.rake +4 -0
- metadata +134 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d0681d08482257d9087fab4919299104719f9d08
|
4
|
+
data.tar.gz: e2eea05d9846ec2973888ee1dd53872a4a082892
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 703df20552382ceda82c1e1183979170c6809dd38b60718c46900348dae1a53cb2838520591adfe2cdb9150ef2b2f71e869f828243a1c2968b4ab43a1c14ebfd
|
7
|
+
data.tar.gz: c1c32e47da7ad92e68c5d36c467dbaae1be03e8eb7f158e7d9a849d19eefeeb42f7d1c87989e2fa178bebff2bf3ccfeb47896a1b4b119c8e0b74b9e71750e924
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2016 Roberto Vasquez Angel
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
= Ecm::Rbac::Backend
|
2
|
+
|
3
|
+
This gem implements a backend for the ecm_rbac gem.
|
4
|
+
|
5
|
+
|
6
|
+
= Why?
|
7
|
+
|
8
|
+
* Beautiful backend to edit your permissions.
|
9
|
+
|
10
|
+
|
11
|
+
= Installation
|
12
|
+
|
13
|
+
Add it to your gemfile, bundle and run installer:
|
14
|
+
|
15
|
+
echo "\ngem 'ecm_rbac_backend'" >> Gemfile
|
16
|
+
bundle
|
17
|
+
rails g ecm:rbac:backend:install
|
18
|
+
|
19
|
+
The installer will
|
20
|
+
|
21
|
+
* add an initializer with configuration options in initializers/ecm_rbac_backend.rb.
|
22
|
+
* add a routing entry to mount the engine.
|
23
|
+
|
24
|
+
|
25
|
+
= Configuration
|
26
|
+
|
27
|
+
|
28
|
+
= Usage
|
29
|
+
|
30
|
+
Open your browser and visit http://your-app/en/backend/ecm/rbac
|
31
|
+
|
32
|
+
|
33
|
+
= License
|
34
|
+
|
35
|
+
This project rocks and uses MIT-LICENSE.
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Ecm::Rbac::Backend'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
Bundler::GemHelper.install_tasks
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require_tree ./application
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require ecm/rbac/backend/application
|
File without changes
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Ecm::Rbac
|
2
|
+
module Backend
|
3
|
+
class ImportDefaultPermissionsServiceController < Itsf::Backend::Service::BaseController
|
4
|
+
def self.service_class
|
5
|
+
Ecm::Rbac::ImportDefaultPermissionsService
|
6
|
+
end
|
7
|
+
|
8
|
+
def invoke
|
9
|
+
@filenames = load_filenames
|
10
|
+
super
|
11
|
+
end
|
12
|
+
|
13
|
+
def call
|
14
|
+
@filenames = load_filenames
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def permitted_params
|
21
|
+
params.require(:import_default_permissions_service).permit(:filename)
|
22
|
+
end
|
23
|
+
|
24
|
+
def load_filenames
|
25
|
+
::Rails::Engine.subclasses.map(&:instance).collect do |engine|
|
26
|
+
filename = engine.root.join *%w(config rbac.yml)
|
27
|
+
next unless File.readable? filename
|
28
|
+
filename
|
29
|
+
end.compact
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ecm::Rbac
|
2
|
+
module Backend
|
3
|
+
class PermissionsController < Itsf::Backend::Resource::BaseController
|
4
|
+
def self.resource_class
|
5
|
+
Ecm::Rbac::Permission
|
6
|
+
end
|
7
|
+
|
8
|
+
private
|
9
|
+
|
10
|
+
def permitted_params
|
11
|
+
params.require(:permission).except!(:user_ids).permit(:identifier, :enabled_from, :enabled_to, role_ids: [])
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Rbac
|
3
|
+
module Backend
|
4
|
+
class RolesController < Itsf::Backend::Resource::BaseController
|
5
|
+
def self.resource_class
|
6
|
+
Ecm::Rbac::Role
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def permitted_params
|
12
|
+
params.require(:role).permit(:identifier, :enabled_from, :enabled_to, permission_ids: [], user_ids: [])
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Rbac
|
3
|
+
module Backend
|
4
|
+
class UsersController < Itsf::Backend::Resource::BaseController
|
5
|
+
def self.resource_class
|
6
|
+
Ecm::Rbac::Configuration.user_class
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def permitted_params
|
12
|
+
params.require(:user).permit(role_ids: [])
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
= form.input :filename, as: :select, collection: @filenames
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.panel.panel-default
|
2
|
+
.panel-heading
|
3
|
+
.panel-title= Ecm::Rbac::Role.model_name.human(count: :other)
|
4
|
+
%table.table.table-striped.table-condensed.table-hover
|
5
|
+
= render_collection(@resource.roles, Ecm::Rbac::Role, as: :bootstrap_table) do |table|
|
6
|
+
= table.column :identifier
|
7
|
+
= table.column :actions do |resource|
|
8
|
+
= link_to t('.show'), url_for(resource), class: 'btn btn-primary btn-xs'
|
9
|
+
.panel-footer
|
10
|
+
|
11
|
+
.panel.panel-default
|
12
|
+
.panel-heading
|
13
|
+
.panel-title= Ecm::Rbac::Configuration.user_class.model_name.human(count: :other)
|
14
|
+
%table.table.table-striped.table-condensed.table-hover
|
15
|
+
= render_collection(@resource.users, Ecm::Rbac::Configuration.user_class.model_name, as: :bootstrap_table) do |table|
|
16
|
+
= table.column :email
|
17
|
+
= table.column :actions do |resource|
|
18
|
+
= link_to t('.show'), url_for(resource), class: 'btn btn-primary btn-xs'
|
19
|
+
.panel-footer
|
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
.panel.panel-default
|
3
|
+
.panel-heading
|
4
|
+
.panel-title= Ecm::Rbac::Configuration.user_class.model_name.human(count: :other)
|
5
|
+
%table.table.table-striped.table-condensed.table-hover
|
6
|
+
= render_collection(@resource.users, Ecm::Rbac::Configuration.user_class, as: :bootstrap_table) do |table, resource|
|
7
|
+
= table.column :email
|
8
|
+
= table.column :actions do |resource|
|
9
|
+
= link_to t('.show'), url_for(resource), class: 'btn btn-primary btn-xs'
|
10
|
+
.panel-footer
|
11
|
+
|
12
|
+
.panel.panel-default
|
13
|
+
.panel-heading
|
14
|
+
.panel-title= Ecm::Rbac::Permission.model_name.human(count: :other)
|
15
|
+
%table.table.table-striped.table-condensed.table-hover
|
16
|
+
= render_collection(@resource.permissions, Ecm::Rbac::Permission, as: :bootstrap_table) do |table, resource|
|
17
|
+
= table.column :identifier
|
18
|
+
= table.column :actions do |resource|
|
19
|
+
= link_to t('.show'), url_for(resource), class: 'btn btn-primary btn-xs'
|
20
|
+
.panel-footer
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
= form.search :email_cont
|
@@ -0,0 +1,21 @@
|
|
1
|
+
- if @resource.respond_to?(:roles)
|
2
|
+
.panel.panel-default
|
3
|
+
.panel-heading
|
4
|
+
.panel-title= Ecm::Rbac::Role.model_name.human(count: :other)
|
5
|
+
%table.table.table-striped.table-condensed.table-hover
|
6
|
+
= render_collection(@resource.roles, Ecm::Rbac::Role, as: :bootstrap_table) do |table, record|
|
7
|
+
= table.column :identifier
|
8
|
+
= table.column :actions do |resource|
|
9
|
+
= link_to t('.show'), url_for(resource), class: 'btn btn-primary btn-xs'
|
10
|
+
.panel-footer
|
11
|
+
|
12
|
+
- if @resource.respond_to?(:permissions)
|
13
|
+
.panel.panel-default
|
14
|
+
.panel-heading
|
15
|
+
.panel-title= Ecm::Rbac::Permission.model_name.human(count: :other)
|
16
|
+
%table.table.table-striped.table-condensed.table-hover
|
17
|
+
= render_collection(@resource.permissions, Ecm::Rbac::Permission, as: :bootstrap_table) do |table, record|
|
18
|
+
= table.column :identifier
|
19
|
+
= table.column :actions do |resource|
|
20
|
+
= link_to t('.show'), url_for(resource), class: 'btn btn-primary btn-xs'
|
21
|
+
.panel-footer
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Backend</title>
|
5
|
+
<%= stylesheet_link_tag "ecm/rbac/backend/application", media: "all" %>
|
6
|
+
<%= javascript_include_tag "ecm/rbac/backend/application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
de:
|
3
|
+
classes:
|
4
|
+
ecm/rbac/backend/engine: "Authorisierung"
|
5
|
+
scopes:
|
6
|
+
never_signed_in: Niemals angemeldet
|
7
|
+
ecm:
|
8
|
+
rbac:
|
9
|
+
backend:
|
10
|
+
roles:
|
11
|
+
show_extras:
|
12
|
+
show: 'Anzeigen'
|
13
|
+
users:
|
14
|
+
show_extras:
|
15
|
+
show: 'Anzeigen'
|
16
|
+
pundit:
|
17
|
+
not_authorized:
|
18
|
+
index: "Sie sind nicht berechtigt %{collection_name} aufzulisten"
|
19
|
+
new: "Sie sind nicht berechtigt %{collection_name} hinzuzufügen"
|
20
|
+
routes:
|
21
|
+
mount:
|
22
|
+
ecm_user_area_backend: '/backend/authorisierung'
|
data/config/rbac.yml
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
defaults:
|
2
|
+
permissions:
|
3
|
+
- ecm/rbac/backend/engine
|
4
|
+
- ecm/rbac/permission/index
|
5
|
+
- ecm/rbac/permission/show
|
6
|
+
- ecm/rbac/permission/new
|
7
|
+
- ecm/rbac/permission/create
|
8
|
+
- ecm/rbac/permission/edit
|
9
|
+
- ecm/rbac/permission/update
|
10
|
+
- ecm/rbac/permission/destroy
|
11
|
+
- ecm/rbac/role/index
|
12
|
+
- ecm/rbac/role/show
|
13
|
+
- ecm/rbac/role/new
|
14
|
+
- ecm/rbac/role/create
|
15
|
+
- ecm/rbac/role/edit
|
16
|
+
- ecm/rbac/role/update
|
17
|
+
- ecm/rbac/role/destroy
|
18
|
+
- ecm/rbac/user/index
|
19
|
+
- ecm/rbac/user/show
|
20
|
+
- ecm/rbac/user/new
|
21
|
+
- ecm/rbac/user/create
|
22
|
+
- ecm/rbac/user/edit
|
23
|
+
- ecm/rbac/user/update
|
24
|
+
- ecm/rbac/user/destroy
|
25
|
+
- ecm/rbac/import_default_permissions_service/call
|
26
|
+
- ecm/rbac/import_default_permissions_service/invoke
|
27
|
+
roles:
|
28
|
+
ecm/rbac/administrator:
|
29
|
+
- ecm/rbac/backend/engine
|
30
|
+
- ecm/rbac/permission/index
|
31
|
+
- ecm/rbac/permission/show
|
32
|
+
- ecm/rbac/permission/new
|
33
|
+
- ecm/rbac/permission/create
|
34
|
+
- ecm/rbac/permission/edit
|
35
|
+
- ecm/rbac/permission/update
|
36
|
+
- ecm/rbac/permission/destroy
|
37
|
+
- ecm/rbac/role/index
|
38
|
+
- ecm/rbac/role/show
|
39
|
+
- ecm/rbac/role/new
|
40
|
+
- ecm/rbac/role/create
|
41
|
+
- ecm/rbac/role/edit
|
42
|
+
- ecm/rbac/role/update
|
43
|
+
- ecm/rbac/role/destroy
|
44
|
+
- ecm/rbac/user/index
|
45
|
+
- ecm/rbac/user/show
|
46
|
+
- ecm/rbac/user/new
|
47
|
+
- ecm/rbac/user/create
|
48
|
+
- ecm/rbac/user/edit
|
49
|
+
- ecm/rbac/user/update
|
50
|
+
- ecm/rbac/user/destroy
|
51
|
+
- ecm/rbac/import_default_permissions_service/call
|
52
|
+
- ecm/rbac/import_default_permissions_service/invoke
|
53
|
+
ecm/rbac/reviewer:
|
54
|
+
- ecm/rbac/backend/engine
|
55
|
+
- ecm/rbac/permission/index
|
56
|
+
- ecm/rbac/permission/show
|
57
|
+
- ecm/rbac/role/index
|
58
|
+
- ecm/rbac/role/show
|
59
|
+
- ecm/rbac/user/index
|
60
|
+
- ecm/rbac/user/show
|
61
|
+
- ecm/rbac/import_default_permissions_service/invoke
|
data/config/routes.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
Ecm::Rbac::Backend::Engine.routes.draw do
|
2
|
+
resources :permissions
|
3
|
+
resources :roles
|
4
|
+
resources :users
|
5
|
+
|
6
|
+
resources :import_default_permissions_service, only: [:index] do
|
7
|
+
get :invoke, on: :collection
|
8
|
+
post :call, on: :collection
|
9
|
+
end
|
10
|
+
|
11
|
+
root to: 'home#index'
|
12
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'active_support/core_ext/module/delegation'
|
2
|
+
require 'active_support/core_ext/module/attribute_accessors'
|
3
|
+
|
4
|
+
module Ecm
|
5
|
+
module Rbac
|
6
|
+
module Backend
|
7
|
+
module Configuration
|
8
|
+
def configure
|
9
|
+
yield self
|
10
|
+
end
|
11
|
+
|
12
|
+
mattr_accessor :registered_controllers do
|
13
|
+
-> { [] }
|
14
|
+
end
|
15
|
+
|
16
|
+
mattr_accessor :registered_services do
|
17
|
+
-> { [] }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Rbac
|
3
|
+
module Backend
|
4
|
+
module Generators
|
5
|
+
class InstallGenerator < Rails::Generators::Base
|
6
|
+
desc 'Generates the intializer'
|
7
|
+
|
8
|
+
source_root File.expand_path('../templates', __FILE__)
|
9
|
+
|
10
|
+
def generate_initializer
|
11
|
+
copy_file 'initializer.rb', 'config/initializers/ecm_rbac_backend.rb'
|
12
|
+
end
|
13
|
+
|
14
|
+
def generate_routes
|
15
|
+
route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
|
16
|
+
end
|
17
|
+
|
18
|
+
def add_to_itsf_backend
|
19
|
+
insert_into_itsf_backend_config(Ecm::Rbac::Backend::Engine)
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def insert_into_itsf_backend_config(engine_name)
|
25
|
+
inject_into_file 'config/initializers/001_itsf_backend.rb', after: "config.backend_engines = %w(\n" do
|
26
|
+
" #{engine_name}\n"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
Ecm::Rbac::Backend.configure do |config|
|
2
|
+
# Set the resources, that will be shown in the backend menu.
|
3
|
+
#
|
4
|
+
# Default: config.registered_controllers = lambda {
|
5
|
+
# [
|
6
|
+
# Ecm::Rbac::Backend::RolesController
|
7
|
+
# ]
|
8
|
+
# }
|
9
|
+
#
|
10
|
+
config.registered_controllers = lambda {
|
11
|
+
[
|
12
|
+
Ecm::Rbac::Backend::UsersController,
|
13
|
+
Ecm::Rbac::Backend::RolesController,
|
14
|
+
Ecm::Rbac::Backend::PermissionsController
|
15
|
+
]
|
16
|
+
}
|
17
|
+
|
18
|
+
# Set the services, that will be shown in the backend menu.
|
19
|
+
#
|
20
|
+
# Default: config.registered_services = lambda {
|
21
|
+
# [
|
22
|
+
# Ecm::Rbac::Backend::ImportDefaultPermissionsServiceController
|
23
|
+
# ]
|
24
|
+
# }
|
25
|
+
#
|
26
|
+
config.registered_services = lambda {
|
27
|
+
[
|
28
|
+
Ecm::Rbac::Backend::ImportDefaultPermissionsServiceController
|
29
|
+
]
|
30
|
+
}
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ecm_rbac_backend
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Roberto Vasquez Angel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ecm_rbac
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: itsf_backend
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Ecm::Rbac::Backend Module.
|
56
|
+
email:
|
57
|
+
- roberto@vasquez-angel.de
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- MIT-LICENSE
|
63
|
+
- README.rdoc
|
64
|
+
- Rakefile
|
65
|
+
- app/assets/javascripts/ecm/rbac/backend/application.js
|
66
|
+
- app/assets/javascripts/ecm/rbac/backend/application/dummy.js
|
67
|
+
- app/assets/javascripts/ecm_rbac_backend.js
|
68
|
+
- app/assets/stylesheets/ecm/rbac/backend/application.css
|
69
|
+
- app/assets/stylesheets/ecm/rbac/backend/application/dummy.css
|
70
|
+
- app/assets/stylesheets/ecm_rbac_backend.css
|
71
|
+
- app/controllers/ecm/rbac/backend/home_controller.rb
|
72
|
+
- app/controllers/ecm/rbac/backend/import_default_permissions_service_controller.rb
|
73
|
+
- app/controllers/ecm/rbac/backend/permissions_controller.rb
|
74
|
+
- app/controllers/ecm/rbac/backend/roles_controller.rb
|
75
|
+
- app/controllers/ecm/rbac/backend/users_controller.rb
|
76
|
+
- app/helpers/ecm/rbac/backend/application_helper.rb
|
77
|
+
- app/policies/ecm/rbac/backend/engine_policy.rb
|
78
|
+
- app/policies/ecm/rbac/import_default_permissions_service_policy.rb
|
79
|
+
- app/policies/ecm/rbac/permission_policy.rb
|
80
|
+
- app/policies/ecm/rbac/role_policy.rb
|
81
|
+
- app/policies/ecm/rbac/user_policy.rb
|
82
|
+
- app/views/ecm/rbac/backend/import_default_permissions_service/_form.haml
|
83
|
+
- app/views/ecm/rbac/backend/permissions/_form.haml
|
84
|
+
- app/views/ecm/rbac/backend/permissions/_show.haml
|
85
|
+
- app/views/ecm/rbac/backend/permissions/_show_extras.haml
|
86
|
+
- app/views/ecm/rbac/backend/permissions/_table.haml
|
87
|
+
- app/views/ecm/rbac/backend/roles/_form.haml
|
88
|
+
- app/views/ecm/rbac/backend/roles/_show_extras.haml
|
89
|
+
- app/views/ecm/rbac/backend/roles/_table.haml
|
90
|
+
- app/views/ecm/rbac/backend/users/_form.haml
|
91
|
+
- app/views/ecm/rbac/backend/users/_scopes.haml
|
92
|
+
- app/views/ecm/rbac/backend/users/_search.haml
|
93
|
+
- app/views/ecm/rbac/backend/users/_show.haml
|
94
|
+
- app/views/ecm/rbac/backend/users/_show_extras.haml
|
95
|
+
- app/views/layouts/ecm/rbac/backend/application.html.erb
|
96
|
+
- config/initializers/assets.rb
|
97
|
+
- config/locales/de.yml
|
98
|
+
- config/rbac.yml
|
99
|
+
- config/routes.rb
|
100
|
+
- lib/ecm/rbac/backend.rb
|
101
|
+
- lib/ecm/rbac/backend/configuration.rb
|
102
|
+
- lib/ecm/rbac/backend/engine.rb
|
103
|
+
- lib/ecm/rbac/backend/version.rb
|
104
|
+
- lib/ecm_rbac_backend.rb
|
105
|
+
- lib/generators/ecm/rbac/backend/install/install_generator.rb
|
106
|
+
- lib/generators/ecm/rbac/backend/install/templates/initializer.rb
|
107
|
+
- lib/generators/ecm/rbac/backend/install/templates/routes.source
|
108
|
+
- lib/tasks/ecm/rbac/backend_tasks.rake
|
109
|
+
homepage: https://github.com/robotex82/ecm_rbac_backend
|
110
|
+
licenses:
|
111
|
+
- MIT
|
112
|
+
metadata: {}
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options: []
|
115
|
+
require_paths:
|
116
|
+
- lib
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
requirements: []
|
128
|
+
rubyforge_project:
|
129
|
+
rubygems_version: 2.4.8
|
130
|
+
signing_key:
|
131
|
+
specification_version: 4
|
132
|
+
summary: Ecm::Rbac::Backend.
|
133
|
+
test_files: []
|
134
|
+
has_rdoc:
|