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

Method is_allowed

src/auth/authorization.py:45–48  ·  view source on GitHub ↗
(self, user_id, allowed_users)

Source from the content-addressed store, hash-verified

43 return self.is_admin(user_id) and self._is_allowed_internal(user_id, self._code_editor_users)
44
45 def is_allowed(self, user_id, allowed_users):
46 normalized_users = _normalize_users(allowed_users)
47
48 return self._is_allowed_internal(user_id, normalized_users)
49
50 def _is_allowed_internal(self, user_id, normalized_allowed_users):
51 if not normalized_allowed_users:

Callers 2

_can_access_scriptMethod · 0.45
_can_edit_scriptMethod · 0.45

Calls 2

_is_allowed_internalMethod · 0.95
_normalize_usersFunction · 0.85

Tested by

no test coverage detected