% if current_user && current_user.person.is_admin? %> <% active_notifications = AdminNotificationsPlugin::Notification.active(environment) %> <% unless active_notifications.blank? %>
<% end %> <% end %> <% target = profile.present? ? profile : environment %> <% @notifications = AdminNotificationsPlugin::Notification.visibles(target, current_user, controller_path).where("id NOT IN (?)", hide_notifications) %>