Permalink
Browse files

correct authorization rules for mpr

  • Loading branch information...
1 parent f8e8725 commit efd742b92607cae29a3811c085f42a3044f15ca6 @Bringo Bringo committed Feb 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 config/auth_rules/mpr.rb
View
@@ -10,6 +10,10 @@
has_permission_on :users, :to => [:show, :update] do
if_attribute :id => is { user.id }
end
+ has_permission_on :picklists, :to => [:read]
+ (PicklistsController::SUBCLASSES - ['subjects']).each do |kl|
+ has_permission_on kl.to_sym, :to => [:read]
+ end
end
role :cataloger do

0 comments on commit efd742b

Please sign in to comment.