drone/go-scm

(missing feature) add support to check organization membership in gitea driver

cod3rboy opened this issue · 0 comments

Organization service in gitea driver has missing implementation for FindMembership method.
At line - https://github.com/drone/go-scm/blob/master/scm/driver/gitea/org.go#L25

func (s *organizationService) FindMembership(ctx context.Context, name, username string) (*scm.Membership, *scm.Response, error) {
	return nil, nil, scm.ErrNotSupported
}

Due to this, CheckMembership acl middleware is failing for all gitea users trying to access resources in their organization namespace.
This causes organization secrets and templates pages of Drone CI dashboard to crash.