Skip to content
Permalink
Browse files

added a hook to make sure the task filter works as expected

  • Loading branch information...
caseysoftware committed Nov 23, 2017
1 parent dacaa96 commit a63f7caae0bf4a1ea947fd2d9467a5bc50ff9696
Showing with 1 addition and 0 deletions.
  1. +1 −0 classes/w2p/Core/BaseObject.class.php
@@ -593,6 +593,7 @@ public function getAllowedSQL($uid, $index = null)
//If 0 (All Items of a module) are not on the denial array then just deny the denied items
// TODO: The following line needs to be reworked/removed at some point.
$index = ('project_id' == $index) ? 'pr.project_id' : $index;
$index = ('task_id' == $index) ? 't.task_id' : $index;
$where[] = $index . ' NOT IN (' . implode(',', $deny) . ')';
} elseif ((array_search('0', $allow)) === false) {
//If 0 (All Items of a module) are denied and we have granted some then implicit denial to everything else is already in place

0 comments on commit a63f7ca

Please sign in to comment.
You can’t perform that action at this time.