Any identity can create an org
Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
@@ -758,9 +758,10 @@ func (r *mutationResolver) RevokePersonalAPIKey(ctx context.Context, input types
|
|||||||
func (r *mutationResolver) CreateOrganization(ctx context.Context, input types.CreateOrganizationInput) (*types.CreateOrganizationPayload, error) {
|
func (r *mutationResolver) CreateOrganization(ctx context.Context, input types.CreateOrganizationInput) (*types.CreateOrganizationPayload, error) {
|
||||||
identity := IdentityFromContext(ctx)
|
identity := IdentityFromContext(ctx)
|
||||||
|
|
||||||
if ok := r.Authorize(ctx, identity.ID, iam.ActionOrganizationCreate); !ok {
|
// FIXME check email domain and related IDP config
|
||||||
return nil, nil
|
// if ok := r.Authorize(ctx, identity.ID, iam.ActionOrganizationCreate); !ok {
|
||||||
}
|
// return nil, nil
|
||||||
|
// }
|
||||||
|
|
||||||
var (
|
var (
|
||||||
logoFile *iam.UploadedFile
|
logoFile *iam.UploadedFile
|
||||||
|
|||||||
Reference in New Issue
Block a user