0
0
Fork 0

Add simple admin overview of PuSH subscriptions

This commit is contained in:
Eugen Rochko 2016-11-28 18:45:13 +01:00
parent 7e5e33df48
commit 27fc49d745
9 changed files with 97 additions and 0 deletions

View file

@ -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