Sha256: 611fba85290a5c711880503c6df6293b9aee6834b13991f882fd23ed8f95b46e

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

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

3 entries across 3 versions & 1 rubygems

Version Path
authoreyes-0.2.4 authorization_rules.dist.rb
authoreyes-0.2.3 authorization_rules.dist.rb
authoreyes-0.2.2 authorization_rules.dist.rb