peppa/openspec/changes/archive/2026-11-14-pep-88-superadmin-manages/proposal.md
Асель 14177684d4 PEP-88: a superadmin manages any project like its owner
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 23:48:34 +05:00

14 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# PEP-88: суперадмин управляет любым проектом как владелец
## Why
Модель доступа: каждый видит своё пространство и свои проекты; суперадмин видит всё и управляет всем. После PEP-74
суперадмин открывал чужой проект с правами участника, но участниками, видимостью репозитория и подключением
отслеживания ошибок управлял только владелец.
## What Changes
- `managesProject(db, actor, project)` (runner/share.ts): владелец или суперадмин. На нём — `shareProject`, `unshareProject`,
`grantRepoAccess`, `setProjectVisibility`, действие подключения отслеживания ошибок.
- Страница проекта: блоки владельца показываются и суперадмину.
Открытых вопросов нет.