From e4d65ae94dc125af862925ef9ffaa730ac977779 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 13 Feb 2014 16:34:09 +0000 Subject: [PATCH] do NOT check for run rights of preferences app, as we want to be able to store implicit preferences --- phpgwapi/inc/class.egw_framework.inc.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index e11ae18b4f..19a3256726 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -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); } /**