Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
This commit is contained in:
commit
6611100480
70 changed files with 924 additions and 271 deletions
|
@ -40,11 +40,11 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def require_admin!
|
||||
redirect_to root_path unless current_user&.admin?
|
||||
forbidden unless current_user&.admin?
|
||||
end
|
||||
|
||||
def require_staff!
|
||||
redirect_to root_path unless current_user&.staff?
|
||||
forbidden unless current_user&.staff?
|
||||
end
|
||||
|
||||
def check_suspension
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue