We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jowpereira/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
rbac_utils.py•396 B
def is_group_admin_or_global(user, grupo, rbac):
"""
Verifica se o usuário é admin global ou admin do grupo.
Retorna True se sim, False caso contrário.
"""
if user.get("papel") == "global_admin":
return True
if grupo in rbac.get("grupos", {}):
if user.get("username") in rbac["grupos"][grupo].get("admins", []):
return True
return False