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
declarative_authorization-0.5.3 authorization_rules.dist.rb
graylog2-declarative_authorization-0.5.2 authorization_rules.dist.rb
declarative_authorization-0.5.2 authorization_rules.dist.rb
declarative_authorization-dta-0.1.3 authorization_rules.dist.rb
declarative_authorization-0.5.1 authorization_rules.dist.rb
declarative_authorization-dta-0.1.1 authorization_rules.dist.rb
declarative_authorization-dta-0.1 authorization_rules.dist.rb
declarative_authorization-0.5 authorization_rules.dist.rb
timcharper-declarative_authorization-0.4.1.6 authorization_rules.dist.rb
timcharper-declarative_authorization-0.4.1.5 authorization_rules.dist.rb
timcharper-declarative_authorization-0.4.1.4 authorization_rules.dist.rb
timcharper-declarative_authorization-0.4.1.3 authorization_rules.dist.rb
tarsolya-declarative_authorization-0.4.1.2 authorization_rules.dist.rb
tarsolya-declarative_authorization-0.4.1 authorization_rules.dist.rb
timcharper-declarative_authorization-0.4.1.2 authorization_rules.dist.rb
declarative_authorization-0.4.1 authorization_rules.dist.rb
declarative_authorization-0.4 authorization_rules.dist.rb
ghart-declarative_authorization-0.3.2.4 authorization_rules.dist.rb
mconnell-declarative_authorization-0.3.2.3 authorization_rules.dist.rb
viva-declarative_authorization-0.3.2.3.1 authorization_rules.dist.rb