Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / method

is_admin

shared.auth.Principal.is_admin

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Inside (1)
SymbolFileResolved by
Principalauth.pysame file
shared.auth.Principal.is_adminbackend/app/shared/auth.py, lines 74–76Open source
    @property    def is_admin(self) -> bool:        return "admin" in self.scopes

What the index recorded

Signature
def is_admin(self) -> bool:
File
backend/app/shared/auth.py
Lines
74–76
Parser
python-ast
Git blob
c77f24b3d7406a6b302764a8fc5e475c40480e60

Read it on GitHub at this commit