Portal: Fix user profile edition due to recent user rights changes.

SVN:trunk[5303]
This commit is contained in:
Guillaume Lajarige
2018-01-31 12:31:45 +00:00
parent 4bd3084403
commit f78c057b45

View File

@@ -20,6 +20,7 @@
namespace Combodo\iTop\Portal\Form;
use Exception;
use IssueLog;
use CMDBSource;
use Dict;
use UserRights;
@@ -120,6 +121,7 @@ class PreferencesFormManager extends FormManager
// Updating only if preferences changed
if ($iFieldChanged > 0)
{
$oCurUser->AllowWrite(true);
$oCurUser->DBUpdate();
$aData['messages']['success'] += array('_main' => array(Dict::S('Brick:Portal:Object:Form:Message:Saved')));
}