feat: honor project login requirement in CollabTable
Lint / Lint (push) Successful in 24s
Tests / Go backend (push) Successful in 1m7s
Tests / Dashboard checks (push) Successful in 51s
Docker / Docker Build & Push (push) Successful in 4m17s

This commit is contained in:
Gabriel20xx committed 2026-09-17 00:32:46 +02:00
1 parent ec82a8a8b9
commit 407966fc94
2 files changed
+20 -21

No files matched your search

+4 -6
View File
@@ -69,12 +69,10 @@ const (
legacySessionCookieName = "collabtable_session"
)
// collabTableAuthStore adapts *DB to sharedauth.ProxyStore. CollabTable never
// had an independent "require login" toggle (a session was always required
// whenever AUTHGUARD_URL was configured at all) so LoginRequired always
// reports true and SetLoginRequired is a no-op -- server.go correspondingly
// wires sharedauth.Service.Require rather than the *IfLoginRequired
// middleware family. IsSetupClaimed/TryClaimSetup/UnclaimSetup delegate
// collabTableAuthStore adapts *DB to sharedauth.ProxyStore. The login
// requirement is runtime-controlled by ProjectConfigurator through
// sharedauth.Service's internal endpoint; this store supplies the conservative
// required-by-default fallback. IsSetupClaimed/TryClaimSetup/UnclaimSetup delegate
// straight through to *DB's existing methods of the same name/signature (see
// db.go), reusing the collabtable_setup_state table/queries verbatim.
type collabTableAuthStore struct {