feat(project): projects visible to members only, admins included
Admins no longer see projects they are not owner/member of: sidebar list, project list API, project pages, search, inbox, notifications, reminders and trash all follow access.visible_project_ids. Only the super admin still sees every project. Member assignment stays admin-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -121,7 +121,8 @@ def _count(sql: str, *args) -> int:
|
||||
# [07] 소유자 변경은 관리자만
|
||||
# ════════════════════════════════════════════════════════════
|
||||
def test_owner_change_admin_only():
|
||||
p = _project("P-owner", ADMIN, (BOB,))
|
||||
# 관리자도 멤버가 아닌 프로젝트는 못 다룬다(2026-10-07) — 소유자를 남에게 넘긴 뒤에도 바꿀 수 있게 멤버로 둔다
|
||||
p = _project("P-owner", ADMIN, (BOB, ADMIN))
|
||||
r = req("PUT", f"/project/api/projects/{p['id']}", BOB, json={"owner_email": BOB})
|
||||
assert r.status_code == 403, r.text
|
||||
assert ST.get_project(project_id=p["id"])["owner_email"] == ADMIN
|
||||
|
||||
Reference in New Issue
Block a user