mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2591 - API : deprecate \CMDBObject::CheckUserRights
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user