Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 28s
CI / test-go-edu-search (push) Successful in 28s
CI / test-python-klausur (push) Failing after 2m22s
CI / test-python-agent-core (push) Successful in 21s
CI / test-nodejs-website (push) Successful in 23s
korrektur/ zeugnis/ admin/ compliance/ worksheet/ training/ metrics/ 52 shims, relative imports, RAG untouched. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
863 B
Python
39 lines
863 B
Python
"""
|
|
RBAC/ABAC Policy System for Klausur-Service (barrel re-export)
|
|
|
|
This module was split into:
|
|
- rbac_types.py (Enums, data structures)
|
|
- rbac_permissions.py (Permission matrix)
|
|
- rbac_engine.py (PolicyEngine, default policies, API guards)
|
|
|
|
All public symbols are re-exported here for backwards compatibility.
|
|
"""
|
|
|
|
# Types and enums
|
|
from .rbac_types import ( # noqa: F401
|
|
Role,
|
|
Action,
|
|
ResourceType,
|
|
ZKVisibilityMode,
|
|
EHVisibilityMode,
|
|
VerfahrenType,
|
|
PolicySet,
|
|
RoleAssignment,
|
|
KeyShare,
|
|
Tenant,
|
|
Namespace,
|
|
ExamPackage,
|
|
)
|
|
|
|
# Permission matrix
|
|
from .rbac_permissions import DEFAULT_PERMISSIONS # noqa: F401
|
|
|
|
# Engine, policies, guards
|
|
from .rbac_engine import ( # noqa: F401
|
|
PolicyEngine,
|
|
create_default_policy_sets,
|
|
get_policy_engine,
|
|
require_permission,
|
|
require_role,
|
|
)
|