deps: Bump reva to latest main
for getting https://github.com/opencloud-eu/reva/pull/360
This commit is contained in:
committed by
Ralf Haferkamp
parent
f096285769
commit
9ec532da93
+11
@@ -28,6 +28,7 @@ import (
|
||||
"github.com/google/uuid"
|
||||
"github.com/opencloud-eu/reva/v2/pkg/appctx"
|
||||
"github.com/opencloud-eu/reva/v2/pkg/errtypes"
|
||||
"github.com/opencloud-eu/reva/v2/pkg/sharedconf"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/rs/zerolog/log"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
@@ -180,6 +181,16 @@ func (i *Identity) Setup() error {
|
||||
return fmt.Errorf("invalid disable mechanism setting: %s", i.User.DisableMechanism)
|
||||
}
|
||||
|
||||
if sharedconf.MultiTenantEnabled() {
|
||||
if i.User.Schema.TenantID == "" {
|
||||
return fmt.Errorf("Invalid configuration: a 'tenantId' user schema attribute must be defined for multi-tenant setups")
|
||||
}
|
||||
} else {
|
||||
if i.User.Schema.TenantID != "" {
|
||||
return fmt.Errorf("Invalid configuration: Superfluous 'tenantId' user schema attribute defined for single-tenant setups")
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user