do NOT check for run rights of preferences app, as we want to be able to store implicit preferences

This commit is contained in:
Ralf Becker 2014-02-13 16:34:09 +00:00
parent f618acc6b5
commit e4d65ae94d

View File

@ -1860,21 +1860,15 @@ if ($app == 'home') continue;
/**
* Set a preference via ajax
*
* User either need run rights for preference app, or setting of preference will be silently ignored!
*
* @param string $app
* @param string $name
* @param string $value
*/
public static function ajax_set_preference($app, $name, $value)
{
//error_log(__METHOD__."('$app', '$name', '$value')");
if ($GLOBALS['egw_info']['user']['apps']['preferences'])
{
$GLOBALS['egw']->preferences->read_repository();
$GLOBALS['egw']->preferences->change($app, $name, $value);
$GLOBALS['egw']->preferences->save_repository(True);
}
$GLOBALS['egw']->preferences->read_repository();
$GLOBALS['egw']->preferences->add($app, $name, $value);
$GLOBALS['egw']->preferences->save_repository(True);
}
/**