Skip to content

Commit

Permalink
fixed a mistake with the arguments in IfAuthenticatedViewHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPNS committed Jan 9, 2020
1 parent f7cf74c commit c84077b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/ViewHelpers/IfAuthenticatedViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public function initializeArguments()
* @return string the rendered string
* @api
*/
public function render($authenticationProviderName = 'Sandstorm.UserManagement:Login')
public function render()
{
$authenticationProviderName = $this->arguments['authenticationProviderName'];
if (static::evaluateCondition($this->arguments, $this->renderingContext)) {
return $this->renderThenChild();
}
Expand Down

0 comments on commit c84077b

Please sign in to comment.