Commit d2753ec31c21f8a6ada4cb3468c09d9188da7e3b
1 parent
3ad68d89
Exists in
staging
and in
29 other branches
admin_notifications: fix admin create notification
(cherry picked from commit 18589b83f421fd4b3f6680125e336b1e4cd64dc5)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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 | ... | ... |