peppa/openspec/changes/archive/2026-11-12-pep-12-project-sharing/specs/web-auth/spec.md
Асель 56b6224587 PEP-12: share projects with other users
- project_members / project_invites; owner adds people by Gitea login,
  invitations are applied at first login; members get the owner's access
  except member management; a member can leave
- access everywhere via projectForUser / userProjectIds (owner or member):
  web inbox, sessions, project pages, MCP
- shareProject / unshareProject: login checked in Gitea, repo collaborator
  (write) added by the owner's client or peppa-bot; missing admin rights
  don't block membership (repoAccess flag)
- web: Members block on the project page, 'shared' badge; MCP:
  list_members, add_member, remove_member; Help updated
- tests: 5 sharing journeys on mock-gitea (64 e2e total, green); test DB
  now also clears users and OAuth clients between files
- OpenSpec: pep-12 archived (project-sharing, web-auth)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-12 22:35:56 +05:00

16 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.

# Spec Delta: web-auth
## MODIFIED Requirements
### Requirement: Доступ только к своим проектам
Пользователь SHALL видеть и изменять только проекты, в которых он владелец или участник,
а также их цели, задачи, сессии и вопросы.
#### Scenario: Чужой проект
- **WHEN** пользователь открывает проект, задачу или сессию проекта, где он не владелец и не участник (в том числе по прямой ссылке), или отправляет по ним действие
- **THEN** он получает «не найдено», данные не раскрываются и не меняются
#### Scenario: Проект, где пользователь участник
- **WHEN** участник открывает общий проект
- **THEN** он видит его так же, как владелец