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

Commit

Permalink
Fix unshare lw accounts (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 authored Aug 15, 2023
1 parent 9017779 commit 2cd139f
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 2cd139f

Please sign in to comment.