mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
remove logged_in_elsewhere as per code review feedback
This commit is contained in:
@@ -140,11 +140,6 @@ class User(JSONModel, UserMixin):
|
||||
set_by_id=set_by_id,
|
||||
)
|
||||
|
||||
def logged_in_elsewhere(self):
|
||||
# This check is deprecated due to the transition to using login.gov.
|
||||
return False
|
||||
# return session.get("current_session_id") != self.current_session_id
|
||||
|
||||
def activate(self):
|
||||
if self.is_pending:
|
||||
user_data = user_api_client.activate_user(self.id)
|
||||
@@ -198,7 +193,7 @@ class User(JSONModel, UserMixin):
|
||||
|
||||
@property
|
||||
def is_authenticated(self):
|
||||
return not self.logged_in_elsewhere() and super(User, self).is_authenticated
|
||||
return super(User, self).is_authenticated
|
||||
|
||||
@property
|
||||
def platform_admin(self):
|
||||
@@ -676,10 +671,6 @@ class InvitedOrgUser(JSONModel):
|
||||
|
||||
|
||||
class AnonymousUser(AnonymousUserMixin):
|
||||
# set the anonymous user so that if a new browser hits us we don't error http://stackoverflow.com/a/19275188
|
||||
|
||||
def logged_in_elsewhere(self):
|
||||
return False
|
||||
|
||||
@property
|
||||
def default_organization(self):
|
||||
|
||||
Reference in New Issue
Block a user