Add Account#unavailable? and Account#permanently_unavailable? aliases (#28053)
This commit is contained in:
1 parent
35deaaf90b
commit
963354978a
25 files changed
+57
-58
No files matched your search
@@ -105,7 +105,7 @@ class Api::BaseController < ApplicationController
|
||||
end
|
||||
|
||||
def require_not_suspended!
|
||||
render json: { error: 'Your login is currently disabled' }, status: 403 if current_user&.account&.suspended?
|
||||
render json: { error: 'Your login is currently disabled' }, status: 403 if current_user&.account&.unavailable?
|
||||
end
|
||||
|
||||
def require_user!
|
||||
|
||||
Reference in new issue
Block a user