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
viva-declarative_authorization-0.3.2.2.1 authorization_rules.dist.rb
declarative_authorization-0.3.2.3 authorization_rules.dist.rb