MCPcopy 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

asDictMethod · 0.95
on_identity_loadedFunction · 0.80
admin_validatorFunction · 0.80
getUserFunction · 0.80
changePasswordForUserFunction · 0.80
deleteApikeyForUserFunction · 0.80
generateApikeyForUserFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected