Permalink
Browse files

Activated authorization usage browser

  • Loading branch information...
1 parent ca64fec commit 1a154bc152ba9270361380019fa66f4a1e2b9527 @stffn committed Feb 22, 2009
Showing with 5 additions and 3 deletions.
  1. +4 −2 config/authorization_rules.rb
  2. +1 −1 vendor/plugins/declarative_authorization
@@ -4,10 +4,11 @@
if_attribute :published => true
end
has_permission_on :talks, :to => :read do
- if_attribute :conference => {:published => true}
+ if_permitted_to :read, :conference
end
has_permission_on :users, :to => :create
has_permission_on :authorization_rules, :to => :read
+ has_permission_on :authorization_usages, :to => :read
end
role :user do
@@ -38,7 +39,8 @@
role :admin do
has_permission_on [:conferences, :users, :talks], :to => :manage
- has_permission_on :authorization_rules, :to => :manage
+ has_permission_on :authorization_rules, :to => :read
+ has_permission_on :authorization_usages, :to => :read
end
end

0 comments on commit 1a154bc

Please sign in to comment.