17 require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition.inc';
42 parent::__construct($assetid);
58 if (empty($condition_data[
'groupids']))
return FALSE;
62 static $evaluate_called = FALSE;
63 if ($evaluate_called)
return FALSE;
64 $evaluate_called = TRUE;
66 $ret_val = array_intersect($condition_data[
'groupids'], $GLOBALS[
'SQ_SYSTEM']->user->getUserGroups());
68 $evaluate_called = FALSE;
70 return !empty($ret_val);