Skip to content

Commit 929667a

Browse files
author
Maksym Savich
committed
MAGETWO-36837: Improve admin authentication and remove bypass
1 parent a1dd507 commit 929667a

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/Captcha/Controller/Adminhtml/Refresh

1 file changed

+10
-0
lines changed

app/code/Magento/Captcha/Controller/Adminhtml/Refresh/Refresh.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@ public function execute()
2727
$this->getResponse()->representJson(json_encode(['imgSrc' => $captchaModel->getImgSrc()]));
2828
$this->_actionFlag->set('', self::FLAG_NO_POST_DISPATCH, true);
2929
}
30+
31+
/**
32+
* Check if user has permissions to access this controller
33+
*
34+
* @return bool
35+
*/
36+
protected function _isAllowed()
37+
{
38+
return true;
39+
}
3040
}

0 commit comments

Comments
 (0)