mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-20 23:07:33 +00:00
21 lines
641 B
Go
21 lines
641 B
Go
|
package admin
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
object_pb "github.com/zitadel/zitadel/internal/api/grpc/object"
|
||
|
"github.com/zitadel/zitadel/internal/domain"
|
||
|
admin_pb "github.com/zitadel/zitadel/pkg/grpc/admin"
|
||
|
)
|
||
|
|
||
|
func (s *Server) ActivateFeatureLoginDefaultOrg(ctx context.Context, _ *admin_pb.ActivateFeatureLoginDefaultOrgRequest) (*admin_pb.ActivateFeatureLoginDefaultOrgResponse, error) {
|
||
|
details, err := s.command.SetBooleanInstanceFeature(ctx, domain.FeatureLoginDefaultOrg, true)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &admin_pb.ActivateFeatureLoginDefaultOrgResponse{
|
||
|
Details: object_pb.DomainToChangeDetailsPb(details),
|
||
|
}, nil
|
||
|
|
||
|
}
|