Add simple admin overview of PuSH subscriptions

This commit is contained in:
Eugen Rochko committed 2016-11-28 18:45:13 +01:00
1 parent 7e5e33df48
commit 27fc49d745
9 files changed
+97

No files matched your search

@@ -31,6 +31,10 @@ class ApplicationController < ActionController::Base
I18n.locale = I18n.default_locale
end
def require_admin!
redirect_to root_path unless current_user&.admin?
end
protected
def not_found