consider running in setup (install/update of app) as run by an admin

This commit is contained in:
Ralf Becker 2011-06-08 10:59:45 +00:00
parent c66928875a
commit 469f938967

View File

@ -65,7 +65,7 @@ class importexport_definition implements importexport_iface_egw_record {
public function __construct( $_identifier='' ) {
$this->so_sql = new so_sql(self::_appname ,self::_defintion_talbe);
$this->user = $GLOBALS['egw_info']['user']['user_id'];
$this->is_admin = $GLOBALS['egw_info']['user']['apps']['admin'] ? true : false;
$this->is_admin = $GLOBALS['egw_info']['user']['apps']['admin'] || $GLOBALS['egw_setup'] ? true : false;
// compability to string identifiers
if (is_string($_identifier) && strlen($_identifier) > 3) $_identifier = $this->name2identifier($_identifier);