Non-admin users cannot modify plugin-provided Skills.
(umo: str)
| 129 | |
| 130 | |
| 131 | def _write_allowed_roots(umo: str) -> tuple[Path, ...]: |
| 132 | """Non-admin users cannot modify plugin-provided Skills.""" |
| 133 | return ( |
| 134 | Path(get_astrbot_skills_path()).resolve(strict=False), |
| 135 | _workspace_root(umo), |
| 136 | Path(get_astrbot_system_tmp_path()).resolve(strict=False), |
| 137 | Path(get_astrbot_temp_path()).resolve(strict=False), |
| 138 | ) |
| 139 | |
| 140 | |
| 141 | def _is_restricted_env(context: ContextWrapper[AstrAgentContext]) -> bool: |
no test coverage detected