mirror of
https://github.com/absmach/magistrala.git
synced 2026-06-23 04:10:28 +00:00
NOISSUE - Fix Domain creation callout (#3189)
Signed-off-by: dusan <borovcanindusan1@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ func NewAuthorization(entityType string, svc domains.Service, authz smqauthz.Aut
|
||||
|
||||
func (am *authorizationMiddleware) CreateDomain(ctx context.Context, session authn.Session, d domains.Domain) (domains.Domain, []roles.RoleProvision, error) {
|
||||
params := map[string]any{
|
||||
"domain": d,
|
||||
"domain": d.ID,
|
||||
}
|
||||
if err := am.callOut(ctx, session, domains.OpCreateDomain.String(domains.OperationNames), params); err != nil {
|
||||
return domains.Domain{}, nil, err
|
||||
|
||||
Reference in New Issue
Block a user