- flagged more db-entries with CUSTOM_EXCLUDE_FOR_LISTVIEW

- check for this flag on list-pages (search already had this)
This commit is contained in:
Sarjuuk
2014-09-19 19:32:49 +02:00
parent 0620a0081d
commit 49ecdb9a31
14 changed files with 67 additions and 12 deletions

View File

@@ -29,7 +29,15 @@ class ItemsetsPage extends GenericPage
protected function generateContent()
{
$itemsets = new ItemsetList($this->filterObj->getConditions());
$conditions = [];
if (!User::isInGroup(U_GROUP_EMPLOYEE))
$conditions[] = [['cuFlags', CUSTOM_EXCLUDE_FOR_LISTVIEW, '&'], 0];
if ($_ = $this->filterObj->getConditions())
$conditions[] = $_;
$itemsets = new ItemsetList($conditions);
$this->extendGlobalData($itemsets->getJSGlobals());
// recreate form selection