notifications-stats-todo
All checks were successful
Deploy on push / deploy (push) Successful in 8m16s
All checks were successful
Deploy on push / deploy (push) Successful in 8m16s
This commit is contained in:
@@ -385,7 +385,7 @@ def require_role(role: str) -> Callable:
|
||||
if not info or not hasattr(info, "context"):
|
||||
raise RBACError("GraphQL info context не найден")
|
||||
|
||||
user_roles, community_id = get_user_roles_from_context(info)
|
||||
user_roles, _community_id = get_user_roles_from_context(info)
|
||||
if role not in user_roles:
|
||||
raise RBACError("Требуется роль в сообществе", role)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user