working commit
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
|
||||
"mstore/pkg/client"
|
||||
"mstore/pkg/descr"
|
||||
"mstore/pkg/term"
|
||||
"mstore/pkg/terms"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -154,12 +154,12 @@ func (util *AccountUtil) createAccount(common *CommonAccountParams, params *Crea
|
||||
}
|
||||
|
||||
fullRights := []string{
|
||||
term.RightWriteAccounts,
|
||||
term.RightReadAccounts,
|
||||
term.RightWriteFiles,
|
||||
term.RightReadFiles,
|
||||
term.RightWriteImages,
|
||||
term.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