Commit 18589b83f421fd4b3f6680125e336b1e4cd64dc5

Authored by Marcos Pereira
1 parent 06d7abf4
Exists in stable-spb-1.5

admin_notifications: fix admin create notification

plugins/admin_notifications/controllers/admin_notifications_plugin_myprofile_controller.rb
... ... @@ -10,7 +10,7 @@ class AdminNotificationsPluginMyprofileController < MyProfileController
10 10 end
11 11  
12 12 def admin_required
13   - redirect_to :root unless target.is_admin?(current_person)
  13 + redirect_to :root unless (current_person.is_admin? || target.is_admin?(current_person))
14 14 end
15 15  
16 16 end
... ...