Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (18 sloc) 0.583 kB
ca8c96b @stffn example authorization rules
authored
1 authorization do
2 role :guest do
3 # add permissions for guests here, e.g.
4 #has_permission_on :conferences, :to => :read
5 end
6
7 # permissions on other roles, such as
8 #role :admin do
9 # has_permission_on :conferences, :to => :manage
10 #end
11 end
12
13 privileges do
14 # default privilege hierarchies to facilitate RESTful Rails apps
15 privilege :manage, :includes => [:create, :read, :update, :delete]
16 privilege :read, :includes => [:index, :show]
17 privilege :create, :includes => :new
18 privilege :update, :includes => :edit
19 privilege :delete, :includes => :destroy
20 end
Something went wrong with that request. Please try again.