Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Aug 7, 2024
1 parent c323f86 commit 071ac66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/middlewared/middlewared/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ def dump(self):

class TokenSessionManagerCredentials(SessionManagerCredentials):
def __init__(self, token_manager, token):
root_credentials = token.root_credentials()
self.root_credentials = token.root_credentials()

self.token_manager = token_manager
self.token = token
self.is_user_session = root_credentials.is_user_session
self.is_user_session = self.root_credentials.is_user_session
if self.is_user_session:
self.user = root_credentials.user
self.user = self.root_credentials.user

self.allowlist = root_credentials.allowlist
self.allowlist = self.root_credentials.allowlist

def is_valid(self):
return self.token.is_valid()
Expand Down

0 comments on commit 071ac66

Please sign in to comment.