lint
This commit is contained in:
parent
83241684e0
commit
f4bd0370c6
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue