Add comment

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-11-14 21:37:11 +01:00
parent 1ae611b21d
commit 68ff0d1095
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -52,8 +52,7 @@ var authCreateAdminToken = &cli.Command{
return fmt.Errorf("--perm flag has to be one of: %s", api.AllPermissions)
}
// TODO: Probably tell the user how powerful this token is
// slice on [:idx] so for example: 'sign' gives you [read, write, sign]
token, err := napi.AuthNew(ctx, api.AllPermissions[:idx])
if err != nil {
return err