← Về thư mục
openai4s/server/team_policy.py
- is_session_control_mutation · function · L56-L64 — def is_session_control_mutation(method: str, path: str) -> bool
- _identity · function · L67-L68 — def _identity(handler: Any) -> Any
- enabled · function · L71-L78 — def enabled(handler: Any) -> bool
- is_admin · function · L81-L83 — def is_admin(handler: Any) -> bool
- may_read_project · function · L89-L100 — def may_read_project(store: Any, identity: Any, project_id: str | None) -> bool
- may_administer_project · function · L103-L121 — def may_administer_project(store: Any, identity: Any, project_id: str | None) -> bool
- may_create_session_in · function · L124-L141 — def may_create_session_in(store: Any, identity: Any, project_id: str | None) -> bool
- may_use_session · function · L147-L155 — def may_use_session(store: Any, identity: Any, session_id: str | None) -> bool
- may_control_session · function · L158-L174 — def may_control_session(store: Any, identity: Any, session_id: str | None) -> bool
- may_use_share · function · L177-L189 — def may_use_share(store: Any, identity: Any, share_row: Any) -> bool
- may_use_memory_scope · function · L192-L202 — def may_use_memory_scope(store: Any, identity: Any, scope: str | None) -> bool
- is_instance_config · function · L320-L327 — def is_instance_config(method: str, path: str) -> bool
- is_daemon_operation · function · L330-L334 — def is_daemon_operation(method: str, path: str) -> bool
- is_instance_mutation · function · L337-L346 — def is_instance_mutation(method: str, path: str) -> bool
- is_admin_only_surface · function · L349-L355 — def is_admin_only_surface(method: str, path: str) -> bool
- may_change_instance_config · function · L358-L362 — def may_change_instance_config(handler: Any) -> bool
- may_write_permission_rule · function · L368-L397 — def may_write_permission_rule( store: Any, identity: Any, scope: str, scope_id: str | None ) -> bool
- may_overwrite_file · function · L403-L424 — def may_overwrite_file(identity: Any, owner_username: str | None) -> bool
- _as_dict · function · L427-L443 — def _as_dict(identity: Any) -> dict[str, Any]