mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 15:38:02 +08:00
FEATURE: restrict admin access based on IP address
This commit is contained in:
@ -2,7 +2,7 @@ class Auth::Result
|
||||
attr_accessor :user, :name, :username, :email, :user,
|
||||
:email_valid, :extra_data, :awaiting_activation,
|
||||
:awaiting_approval, :authenticated, :authenticator_name,
|
||||
:requires_invite
|
||||
:requires_invite, :not_allowed_from_ip_address
|
||||
|
||||
def session_data
|
||||
{
|
||||
@ -22,7 +22,8 @@ class Auth::Result
|
||||
{
|
||||
authenticated: !!authenticated,
|
||||
awaiting_activation: !!awaiting_activation,
|
||||
awaiting_approval: !!awaiting_approval
|
||||
awaiting_approval: !!awaiting_approval,
|
||||
not_allowed_from_ip_address: !!not_allowed_from_ip_address
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user