Commit d2753ec31c21f8a6ada4cb3468c09d9188da7e3b

Authored by Marcos Pereira
1 parent 3ad68d89

admin_notifications: fix admin create notification

(cherry picked from commit 18589b83f421fd4b3f6680125e336b1e4cd64dc5)
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
... ...