Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Fix unshare lw accounts #48

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/storage/utils/eosfs/eosfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,10 @@ func (fs *eosfs) RemoveGrant(ctx context.Context, ref *provider.Reference, g *pr
}

if eosACL.Type == acl.TypeLightweight {
attr := &eosclient.Attribute{}
attr := &eosclient.Attribute{
Type: SystemAttr,
Key: fmt.Sprintf("%s.%s", lwShareAttrKey, eosACL.Qualifier),
}
if err := fs.c.UnsetAttr(ctx, rootAuth, attr, true, fn); err != nil {
return errors.Wrap(err, "eosfs: error removing acl for lightweight account")
}
Expand Down
Loading