From bccc71651ef0a1bbe31328759b25d8bb955421f2 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 13 Oct 2022 14:39:27 -0400 Subject: [PATCH] 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 --- README.md | 6 +++++- config/defaults.go | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4947714fc..a90bfef9e 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,11 @@ repos: note: "A private repo" # Authorized users. Admins have full access to all repos. Regular users -# can read all repos and push to their collab-repos. +# can read public repos and push to their collab-repos. + +# Authorized users. Admins have full access to all repos. Private repos are only +# accessible by admins and collab users. Regular users can read public repos +# based on your anon-access setting. users: - name: Beatrice admin: true diff --git a/config/defaults.go b/config/defaults.go index 295c93487..a471fab58 100644 --- a/config/defaults.go +++ b/config/defaults.go @@ -30,8 +30,9 @@ repos: const hasKeyUserConfig = ` -# Authorized users. Admins have full access to all repos. Users can read all -# repos and push to their collab-repos. +# Authorized users. Admins have full access to all repos. Private repos are only +# accessible by admins and collab users. Regular users can read public repos +# based on your anon-access setting. users: - name: Admin admin: true