MCPcopy Create free account
hub / github.com/dot-billy/nodebyte / require_role

Function require_role

backend/app/core/rbac.py:40–52  ·  view source on GitHub ↗
(
    db: AsyncSession,
    *,
    user: User,
    team_id: uuid.UUID,
    min_role: str = "viewer",
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

create_tokenFunction · 0.90
list_tokensFunction · 0.90
revoke_tokenFunction · 0.90
list_team_membersFunction · 0.90
change_member_roleFunction · 0.90
remove_team_memberFunction · 0.90
create_team_inviteFunction · 0.90
list_team_invitesFunction · 0.90
revoke_team_inviteFunction · 0.90
nodes_countFunction · 0.90
nodes_statsFunction · 0.90
nodes_listFunction · 0.90

Calls 2

require_team_membershipFunction · 0.90
has_roleFunction · 0.85

Tested by

no test coverage detected