This commit is contained in:
Daniel Ponte 2025-02-14 00:29:22 -05:00
parent 83241684e0
commit f4bd0370c6

View file

@ -112,7 +112,7 @@ func (s *postgresStore) Shares(ctx context.Context, p SharesParams) (shares []*S
sub := entities.SubjectFrom(ctx)
// ersatz RBAC
owner := common.PtrTo(int32(-1)) // invalid UID
var owner *int32
switch s := sub.(type) {
case *users.User:
if !s.IsAdmin {