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) {
|
||||
identity := IdentityFromContext(ctx)
|
||||
|
||||
if ok := r.Authorize(ctx, identity.ID, iam.ActionOrganizationCreate); !ok {
|
||||
return nil, nil
|
||||
}
|
||||
// FIXME check email domain and related IDP config
|
||||
// if ok := r.Authorize(ctx, identity.ID, iam.ActionOrganizationCreate); !ok {
|
||||
// return nil, nil
|
||||
// }
|
||||
|
||||
var (
|
||||
logoFile *iam.UploadedFile
|
||||
|
||||
Reference in New Issue
Block a user