working commit
This commit is contained in:
@@ -17,8 +17,9 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"mstore/app/descr"
|
||||
"mstore/pkg/client"
|
||||
"mstore/pkg/descr"
|
||||
"mstore/pkg/terms"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -145,12 +146,12 @@ func (util *AccountUtil) createAccount(common *CommonAccountParams, params *Crea
|
||||
}
|
||||
|
||||
fullRights := []string{
|
||||
descr.RightWriteAccounts,
|
||||
descr.RightReadAccounts,
|
||||
descr.RightWriteFiles,
|
||||
descr.RightReadFiles,
|
||||
descr.RightWriteImages,
|
||||
descr.RightReadImages,
|
||||
terms.RightWriteAccounts,
|
||||
terms.RightReadAccounts,
|
||||
terms.RightWriteFiles,
|
||||
terms.RightReadFiles,
|
||||
terms.RightWriteImages,
|
||||
terms.RightReadImages,
|
||||
}
|
||||
for _, right := range fullRights {
|
||||
id, err := client.NewClient().CreateGrantByAccountID(ctx, hostname, accountID, right, ".*")
|
||||
|
||||
Reference in New Issue
Block a user