Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AstroPrint/AstroBox
/ is_admin
Method
is_admin
src/astroprint/users.py:381–382 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
379
return
"user"
in self._roles
380
381
def
is_admin(self):
382
return
"admin"
in self._roles
383
384
##~~ DummyUser object to use when accessControl is disabled
385
Callers
7
asDict
Method · 0.95
on_identity_loaded
Function · 0.80
admin_validator
Function · 0.80
getUser
Function · 0.80
changePasswordForUser
Function · 0.80
deleteApikeyForUser
Function · 0.80
generateApikeyForUser
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected