working commit

This commit is contained in:
2026-02-13 15:42:11 +02:00
parent 3750b386b1
commit e72ffda8b1
3 changed files with 24 additions and 19 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ import (
"mstore/app/operator"
)
func (cli *Client) CreateGrant(ctx context.Context, hosturi, accountID, operation, pattern string) error {
func (cli *Client) CreateGrant(ctx context.Context, hosturi, accountID, right, pattern string) error {
var err error
apiuri, err := setApiPath(hosturi, "/v3/api/grant/create")
@@ -27,7 +27,7 @@ func (cli *Client) CreateGrant(ctx context.Context, hosturi, accountID, operatio
}
operParams := operator.CreateGrantParams{
AccountID: accountID,
Operation: operation,
Right: right,
Pattern: pattern,
}
paramsJson, err := json.Marshal(operParams)