mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-09 06:08:04 -05:00
misc: Allow owner or DE of author to self-collect
This commit is contained in:
@@ -585,9 +585,12 @@ contract LensHub is
|
||||
if (__DEPRECATED__collectModuleWhitelisted[msg.sender]) {
|
||||
// This state was pre-filled at LegacyCollectLib and it is a hack to make legacy collect work when
|
||||
// configured for followers only.
|
||||
return _legacyCollectFollowValidationHelper[followerAddress] == followedProfileId;
|
||||
return
|
||||
_legacyCollectFollowValidationHelper[followerAddress] == followedProfileId ||
|
||||
ProfileLib.isExecutorApproved(followedProfileId, followerAddress) ||
|
||||
ProfileLib.ownerOf(followedProfileId) == followerAddress;
|
||||
} else {
|
||||
revert(Errors.ExecutorInvalid());
|
||||
revert Errors.ExecutorInvalid();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user