[#49] bearer: Consider impersonate in fillBody #62

Merged
dkirillov merged 1 commit from dkirillov/frostfs-sdk-go:bugfix/49-fix_fillbody_token into master 2023-04-18 14:54:06 +00:00
Showing only changes of commit 6dfeb6e888 - Show all commits

View file

@ -90,7 +90,7 @@ func (b *Token) ReadFromV2(m acl.BearerToken) error {
}
func (b Token) fillBody() *acl.BearerTokenBody {
if !b.eaclTableSet && !b.targetUserSet && !b.lifetimeSet {
if !b.eaclTableSet && !b.targetUserSet && !b.lifetimeSet && !b.impersonate {
return nil
}