admin magic box: v0.1
This commit is contained in:
@@ -1405,7 +1405,14 @@ class Databap extends PhpObject
|
||||
}
|
||||
}
|
||||
ksort($asSelectedOptions);
|
||||
return $this->jsonExport($asSelectedOptions);
|
||||
|
||||
//Admin options
|
||||
$asAdminOptions = array();
|
||||
if($this->checkUserClearance(self::CLEARANCE_ADMIN))
|
||||
{
|
||||
$asAdminOptions['companies'] = $this->oMySql->selectList(self::COMP_TABLE);
|
||||
}
|
||||
return $this->jsonExport(array('admin'=>$asAdminOptions, 'options'=>$asSelectedOptions));
|
||||
}
|
||||
|
||||
public function setOptions($asNewOptions, $bSilentUpdate=true, $iUserId=0)
|
||||
|
||||
Reference in New Issue
Block a user