mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
Portal: Refactor a security check to remove unnecessary security messages in error.log
SVN:trunk[4684]
This commit is contained in:
@@ -369,7 +369,7 @@ class ManageBrickController extends BrickController
|
|||||||
if ($sItemAttr === $sMainActionAttrCode)
|
if ($sItemAttr === $sMainActionAttrCode)
|
||||||
{
|
{
|
||||||
// Checking if we can edit the object
|
// Checking if we can edit the object
|
||||||
if (SecurityHelper::IsActionAllowed($oApp, UR_ACTION_MODIFY, $sCurrentClass, $oCurrentRow->GetKey()) && ($oBrick->GetOpeningMode() === ManageBrick::ENUM_ACTION_EDIT))
|
if (($oBrick->GetOpeningMode() === ManageBrick::ENUM_ACTION_EDIT) && SecurityHelper::IsActionAllowed($oApp, UR_ACTION_MODIFY, $sCurrentClass, $oCurrentRow->GetKey()))
|
||||||
{
|
{
|
||||||
$sActionType = ManageBrick::ENUM_ACTION_EDIT;
|
$sActionType = ManageBrick::ENUM_ACTION_EDIT;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user