MCPcopy Index your code
hub / github.com/bugy/script-server / _normalize_user

Function _normalize_user

src/auth/authorization.py:8–11  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

6
7
8def _normalize_user(user):
9 if user:
10 return user.lower().strip()
11 return user
12
13
14def _normalize_users(allowed_users):

Callers 5

_normalize_usersFunction · 0.85
_is_allowed_internalMethod · 0.85
__init__Method · 0.85
get_groupsMethod · 0.85
is_same_userFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected