fix: misleading authorized users comment
Private repos can be accessed by admins and collab users. All other
users can read public repos based on the anon-access setting.
Fixes: https://github.com/charmbracelet/soft-serve/issues/165
Diff
1diff --git a/README.md b/README.md
2index 4947714fce1c853183bc22034a188d9ba2fbb597..a90bfef9ef658659ba77416568b9b791546d90f8 100644
3--- a/README.md
4+++ b/README.md
5@@ -133,7 +133,11 @@ repos:
6 note: "A private repo"
7 8 # Authorized users. Admins have full access to all repos. Regular users
9-# can read all repos and push to their collab-repos.
10+# can read public repos and push to their collab-repos.
11+
12+# Authorized users. Admins have full access to all repos. Private repos are only
13+# accessible by admins and collab users. Regular users can read public repos
14+# based on your anon-access setting.
15 users:
16 - name: Beatrice
17 admin: true
18diff --git a/config/defaults.go b/config/defaults.go
19index 295c93487e11fc8cd243ad06f2bb98f6c0f29809..a471fab58bdf9a21cf977b8de1f8a6f94e9c215a 100644
20--- a/config/defaults.go
21+++ b/config/defaults.go
22@@ -30,8 +30,9 @@ repos:
2324 const hasKeyUserConfig = `
2526-# Authorized users. Admins have full access to all repos. Users can read all
27-# repos and push to their collab-repos.
28+# Authorized users. Admins have full access to all repos. Private repos are only
29+# accessible by admins and collab users. Regular users can read public repos
30+# based on your anon-access setting.
31 users:
32 - name: Admin
33 admin: true