feat: Allow dispatcher and executor to set follow module.

This commit is contained in:
Peter Michael
2022-09-21 16:06:42 -04:00
parent 94fa1fa466
commit cb0ed6b378
2 changed files with 1 additions and 2 deletions

View File

@@ -185,7 +185,6 @@ contract LensHub is LensNFTBase, VersionedInitializable, LensMultiState, LensHub
address followModule,
bytes calldata followModuleInitData
) external override whenNotPaused {
_validateCallerIsProfileOwner(profileId);
GeneralLib.setFollowModule(profileId, followModule, followModuleInitData);
}

View File

@@ -220,7 +220,7 @@ library GeneralLib {
address followModule,
bytes calldata followModuleInitData
) external {
// _validateCallerIsOwnerOrDispatcherOrExecutor(profileId);
_validateCallerIsOwnerOrDispatcherOrExecutor(profileId);
_setFollowModule(profileId, msg.sender, followModule, followModuleInitData);
}