forked from extern/egroupware
Actually use definition permissions
This commit is contained in:
parent
ae07ff2331
commit
ae035df727
@ -29,13 +29,13 @@ class importexport_definitions_bo {
|
||||
*/
|
||||
private $definitions;
|
||||
|
||||
public function __construct($_query=false)
|
||||
public function __construct($_query=false, $ignore_acl = false)
|
||||
{
|
||||
$this->so_sql = new so_sql(self::_appname, self::_defintion_table );
|
||||
if ($_query) {
|
||||
$definitions = $this->so_sql->search($_query, true);
|
||||
$definitions = $this->so_sql->search($_query, false);
|
||||
foreach ((array)$definitions as $definition) {
|
||||
$this->definitions[] = $definition['definition_id'];
|
||||
if(self::is_permitted($definition) || $ignore_acl) $this->definitions[] = $definition['definition_id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ class importexport_definitions_ui
|
||||
*/
|
||||
function index($content = null,$msg='')
|
||||
{
|
||||
$bodefinitions = new importexport_definitions_bo(array('name' => '*'));
|
||||
$bodefinitions = new importexport_definitions_bo(array('name' => '*'), true);
|
||||
if (is_array($content))
|
||||
{
|
||||
if (isset($content['delete']))
|
||||
|
Loading…
Reference in New Issue
Block a user