Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correct authorization rules for mpr

  • Loading branch information...
commit efd742b92607cae29a3811c085f42a3044f15ca6 1 parent f8e8725
@Bringo Bringo authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 config/auth_rules/mpr.rb
View
4 config/auth_rules/mpr.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.