Update scope usage and add Changes for lightweight accounts

This commit is contained in:
Ishank Arora
2021-07-13 13:03:06 +02:00
parent 7b1130f34b
commit 29c5cb627a
6 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -654,7 +654,7 @@ func mintToken(ctx context.Context, su *User, roleIds []string) (token string, e
UidNumber: int64(su.UIDNumber),
GidNumber: int64(su.GIDNumber),
}
s, _ := scope.GetOwnerScope()
s, _ := scope.AddOwnerScope(nil)
return tokenManager.MintToken(ctx, u, s)
}