mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-13 06:08:58 +02:00
fix: archive ownerless repositories without assigning ownership (#800)
This commit is contained in:
@@ -309,6 +309,7 @@ router.get(
|
||||
try {
|
||||
user = await getUser(req);
|
||||
} catch { /* not logged in */ }
|
||||
repo.assertNotArchived();
|
||||
const canEdit =
|
||||
!!user &&
|
||||
(user.isAdmin ||
|
||||
|
||||
Reference in New Issue
Block a user