mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-03 01:23:31 +01:00
fix: archive ownerless repositories without assigning ownership (#800)
This commit is contained in:
1 parent
8de4a536cc
commit
530e388e46
13 files changed
+364
-53
No files matched your search
@@ -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