mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-19 17:38:06 +02:00
Actually use definition permissions
This commit is contained in:
parent
ae07ff2331
commit
ae035df727
@ -29,13 +29,13 @@ class importexport_definitions_bo {
|
|||||||
*/
|
*/
|
||||||
private $definitions;
|
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 );
|
$this->so_sql = new so_sql(self::_appname, self::_defintion_table );
|
||||||
if ($_query) {
|
if ($_query) {
|
||||||
$definitions = $this->so_sql->search($_query, true);
|
$definitions = $this->so_sql->search($_query, false);
|
||||||
foreach ((array)$definitions as $definition) {
|
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='')
|
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 (is_array($content))
|
||||||
{
|
{
|
||||||
if (isset($content['delete']))
|
if (isset($content['delete']))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user