Skip to content

Commit 66c657a

Browse files
committed
Merge branch 'PR2' of https://git.epam.com/MAGN-PASS/magento2ce into spm-131-PRs-stabilization
2 parents 42866d6 + 95cb506 commit 66c657a

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

app/code/Magento/Security/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"php": "~5.5.0|~5.6.0|~7.0.0",
66
"magento/module-backend": "100.0.*",
77
"magento/module-store": "100.0.*",
8-
"magento/module-user": "100.0.*",
98
"magento/framework": "100.0.*"
109
},
1110
"suggest": {

app/code/Magento/User/Controller/Adminhtml/User/Role/SaveRole.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ class SaveRole extends \Magento\User\Controller\Adminhtml\User\Role
4646
*/
4747
protected $securityCookieHelper;
4848

49-
/**
50-
* @var \Magento\Backend\Model\Auth\Session
51-
*/
52-
protected $backendAuthSession;
53-
5449
/**
5550
* @param \Magento\Backend\App\Action\Context $context
5651
* @param \Magento\Framework\Registry $coreRegistry
@@ -60,7 +55,6 @@ class SaveRole extends \Magento\User\Controller\Adminhtml\User\Role
6055
* @param \Magento\Backend\Model\Auth\Session $authSession
6156
* @param \Magento\Framework\Filter\FilterManager $filterManager
6257
* @param \Magento\Security\Helper\SecurityCookie $securityCookieHelper
63-
* @param \Magento\Backend\Model\Auth\Session $backendAuthSession
6458
*/
6559
public function __construct(
6660
\Magento\Backend\App\Action\Context $context,
@@ -70,8 +64,7 @@ public function __construct(
7064
\Magento\Authorization\Model\RulesFactory $rulesFactory,
7165
\Magento\Backend\Model\Auth\Session $authSession,
7266
\Magento\Framework\Filter\FilterManager $filterManager,
73-
\Magento\Security\Helper\SecurityCookie $securityCookieHelper,
74-
\Magento\Backend\Model\Auth\Session $backendAuthSession
67+
\Magento\Security\Helper\SecurityCookie $securityCookieHelper
7568
) {
7669
parent::__construct(
7770
$context,
@@ -83,7 +76,6 @@ public function __construct(
8376
$filterManager
8477
);
8578
$this->securityCookieHelper = $securityCookieHelper;
86-
$this->backendAuthSession = $backendAuthSession;
8779
}
8880

8981
/**
@@ -166,7 +158,7 @@ protected function validateUser()
166158
$password = $this->getRequest()->getParam(
167159
\Magento\User\Block\Role\Tab\Info::IDENTITY_VERIFICATION_PASSWORD_FIELD
168160
);
169-
$user = $this->backendAuthSession->getUser();
161+
$user = $this->_authSession->getUser();
170162
$user->performIdentityCheck($password);
171163

172164
return $this;

app/code/Magento/User/Model/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* @method string getExtra()
2727
* @method \Magento\User\Model\User setExtra(string $value)
2828
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
29+
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
2930
* @SuppressWarnings(PHPMD.LongVariable)
3031
*/
3132
class User extends AbstractModel implements StorageInterface, UserInterface

0 commit comments

Comments
 (0)