auth and rbac improves

This commit is contained in:
2025-08-20 18:33:58 +03:00
parent fe76eef273
commit fb45178396
10 changed files with 426 additions and 225 deletions

View File

@@ -14,18 +14,9 @@ from orm.community import (
Community,
CommunityAuthor,
CommunityFollower,
get_user_roles_in_community,
assign_role_to_user,
remove_role_from_user
)
from storage.db import local_session
# Используем общую фикстуру из conftest.py
# Используем общую фикстуру из conftest.py
from rbac.api import assign_role_to_user, get_user_roles_in_community
@pytest.fixture
def community_with_creator(db_session, test_users):