Add simple admin overview of PuSH subscriptions
This commit is contained in:
parent
7e5e33df48
commit
27fc49d745
9 changed files with 97 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue