Sha256: e9bc8b3a9d2749a90ca1ca9098e2f2e5ff415f9593d2daa1e4fabeb194643f87

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 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

2 entries across 2 versions & 1 rubygems

Version Path
authoreyes-0.2.1 authorization_rules.dist.rb
authoreyes-0.2.0 authorization_rules.dist.rb