MCPcopy Create free account
hub / github.com/bugy/script-server / is_admin

Method is_admin

src/auth/authorization.py:36–37  ·  view source on GitHub ↗
(self, user_id)

Source from the content-addressed store, hash-verified

34 return self._is_allowed_internal(user_id, self._app_allowed_users)
35
36 def is_admin(self, user_id):
37 return self._is_allowed_internal(user_id, self._admin_users)
38
39 def has_full_history_access(self, user_id):
40 return self.is_admin(user_id) or self._is_allowed_internal(user_id, self._full_history_users)

Callers 7

can_edit_codeMethod · 0.95
assertAdminMethod · 0.95
has_admin_rightsFunction · 0.45
list_configsMethod · 0.45
_find_configMethod · 0.45
_check_admin_accessMethod · 0.45

Calls 1

_is_allowed_internalMethod · 0.95

Tested by 1

assertAdminMethod · 0.76