mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
consider running in setup (install/update of app) as run by an admin
This commit is contained in:
parent
c66928875a
commit
469f938967
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user