Sha256: 53cba9d41e3655b606da063b8d8a9a5b5ba968c9adcf77674666b130acb5bbe2

Contents?: true

Size: 628 Bytes

Versions: 9

Compression:

Stored size: 628 Bytes

Contents

### Privileges.rb
#
# Defines the privilegesets and privileges for the CBAC system
#
include Cbac
puts "Loading privilegesets"

cbac do
  set :public, "Stuff that is always accessible" do
    # Insert public conroller/methods here
  end

  set :cbac_administration, "Allows administration of CBAC modules" do
    in_module :cbac do
      get "permissions", :index
      post "permissions", :create
      get "memberships", :index
      post "memberships", :create
      get "generic_roles", :index
      post "generic_roles", :update, :create, :delete
      get "upgrade", :index
      post "upgrade", :update
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cbac-0.8.0 lib/generators/cbac/copy_files/config/privileges.rb
cbac-0.7.0 lib/generators/cbac/copy_files/config/privileges.rb
cbac-0.6.10 lib/generators/cbac/copy_files/config/privileges.rb
cbac-0.6.9 lib/generators/cbac/copy_files/config/privileges.rb
cbac-0.6.8 lib/generators/cbac/copy_files/config/privileges.rb
cbac-0.6.7 lib/generators/cbac/copy_files/config/privileges.rb
cbac-0.6.5 lib/generators/cbac/copy_files/config/privileges.rb
cbac-0.6.4 lib/generators/cbac/copy_files/config/privileges.rb
cbac-0.6.2 lib/generators/cbac/copy_files/config/privileges.rb