repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
3225b71
parent
9baad06
author
Eric Bower
date
2026-04-19 13:47:38 -0400 EDT
fix(pgs): admin check logic
1 files changed,  +1, -1
M pkg/apps/pgs/cli.go
+1, -1
1@@ -543,7 +543,7 @@ func (c *Cmd) cacheAll() error {
2 	isAdmin := false
3 	ff, _ := c.Dbpool.FindFeature(c.User.ID, "admin")
4 	if ff != nil {
5-		if ff.ExpiresAt.Before(time.Now()) {
6+		if ff.ExpiresAt.After(time.Now()) {
7 			isAdmin = true
8 		}
9 	}