Sha256: db1307a200f4db57ebe2b095d3a49d66d67a862d4b441c5b592687bc9da22f5d

Contents?: true

Size: 583 Bytes

Versions: 62

Compression:

Stored size: 583 Bytes

Contents

authorization do
  role :guest do
    # add permissions for guests here, e.g.
    #has_permission_on :conferences, :to => :read
  end
  
  # permissions on other roles, such as
  #role :admin do
  #  has_permission_on :conferences, :to => :manage
  #end
end

privileges do
  # default privilege hierarchies to facilitate RESTful Rails apps
  privilege :manage, :includes => [:create, :read, :update, :delete]
  privilege :read, :includes => [:index, :show]
  privilege :create, :includes => :new
  privilege :update, :includes => :edit
  privilege :delete, :includes => :destroy
end

Version data entries

62 entries across 62 versions & 15 rubygems

Version Path
ae_declarative_authorization-0.13.0 authorization_rules.dist.rb
ae_declarative_authorization-0.13.0.rc1 authorization_rules.dist.rb
ae_declarative_authorization-0.12.1 authorization_rules.dist.rb
ae_declarative_authorization-0.12.1.tim1 authorization_rules.dist.rb
ae_declarative_authorization-0.12.0 authorization_rules.dist.rb
ae_declarative_authorization-0.11.0.pre1 authorization_rules.dist.rb
ae_declarative_authorization-0.11.0 authorization_rules.dist.rb
ae_declarative_authorization-0.10.2 authorization_rules.dist.rb
ae_declarative_authorization-0.10.1 authorization_rules.dist.rb
ae_declarative_authorization-0.10.0 authorization_rules.dist.rb
ae_declarative_authorization-0.9.2 authorization_rules.dist.rb
ae_declarative_authorization-0.9.1 authorization_rules.dist.rb
ae_declarative_authorization-0.9.0 authorization_rules.dist.rb
ae_declarative_authorization-0.8.0 authorization_rules.dist.rb
ae_declarative_authorization-0.7.0 authorization_rules.dist.rb
ae_declarative_authorization-0.6.0 authorization_rules.dist.rb
ae_declarative_authorization-0.6.0.pre3 authorization_rules.dist.rb
ae_declarative_authorization-0.6.0.pre2 authorization_rules.dist.rb
ae_declarative_authorization-0.6.0.pre authorization_rules.dist.rb
authoreyes-0.1.1 authorization_rules.dist.rb