admin_notifications: fix admin create notification

(cherry picked from commit 18589b83)
parent 3ad68d89
Pipeline #3142164 passed with stage
in 143 minutes and 22 seconds
......@@ -10,7 +10,7 @@ class AdminNotificationsPluginMyprofileController < MyProfileController
def admin_required
redirect_to :root unless target.is_admin?(current_person)
redirect_to :root unless (current_person.is_admin? || target.is_admin?(current_person))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment