N°2591 - API : deprecate \CMDBObject::CheckUserRights

This commit is contained in:
Eric
2020-08-28 14:48:00 +02:00
parent ec72d1c767
commit d1af851fcd
2 changed files with 9 additions and 2 deletions

View File

@@ -503,7 +503,13 @@ abstract class CMDBObject extends DBObject
/**
* Helper to ultimately check user rights before writing (Insert, Update or Delete)
* The check should never fail, because the UI should prevent from such a usage
* Anyhow, if the user has found a workaround... the security gets enforced here
* Anyhow, if the user has found a workaround... the security gets enforced here
*
* @param $bSkipStrongSecurity
* @param $iActionCode
*
* @throws \SecurityException
* @deprecated in 2.8.0 will be removed in 2.9
*/
protected function CheckUserRights($bSkipStrongSecurity, $iActionCode)
{

View File

@@ -232,6 +232,7 @@ class Config
'source_of_value' => '',
'show_in_conf_sample' => false,
),
// Deprecated in 2.8.0 to be removed in 2.9
'skip_strong_security' => array(
'type' => 'bool',
'description' => 'Disable strong security - TEMPORARY: this flag should be removed when we are more confident in the recent change in security',
@@ -2386,4 +2387,4 @@ class ConfigPlaceholdersResolver
IssueLog::Error($sErrorMessage, self::class, array($sSourceName, $sKey, $sDefault, $sWholeMask));
throw new ConfigException($sErrorMessage);
}
}
}