Skip to content

Commit 17d0965

Browse files
committed
fix issue with authorization
1 parent e1e4e16 commit 17d0965

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/modules/fundingManager/oracle/FM_PC_ExternalPrice_Redeeming_v1.sol

+10-2
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ contract FM_PC_ExternalPrice_Redeeming_v1 is
224224
_setMaxProjectSellFee(maxSellFee_);
225225

226226
// Set direct operations only flag.
227-
setIsDirectOperationsOnly(isDirectOperationsOnly_);
227+
_setIsDirectOperationsOnly(isDirectOperationsOnly_);
228228
}
229229

230230
// -------------------------------------------------------------------------
@@ -443,12 +443,20 @@ contract FM_PC_ExternalPrice_Redeeming_v1 is
443443
public
444444
onlyOrchestratorAdmin
445445
{
446-
_isDirectOperationsOnly = isDirectOperationsOnly_;
446+
_setIsDirectOperationsOnly(isDirectOperationsOnly_);
447447
}
448448

449449
// -------------------------------------------------------------------------
450450
// Internal Functions
451451

452+
/// @notice Sets the value of the `isDirectOperationsOnly` flag.
453+
/// @param isDirectOperationsOnly_ The new value of the flag.
454+
function _setIsDirectOperationsOnly(bool isDirectOperationsOnly_)
455+
internal
456+
{
457+
_isDirectOperationsOnly = isDirectOperationsOnly_;
458+
}
459+
452460
/// @notice Creates and emits a new redemption order.
453461
/// @dev This function wraps the `_createAndEmitOrder` internal function
454462
/// with specified parameters to handle the transaction and direct

0 commit comments

Comments
 (0)