mod/questions/lib/hooks.php 1 location
|
@@ 407-415 (lines=9) @@
|
| 404 |
|
$message = ''; |
| 405 |
|
|
| 406 |
|
$container_where = []; |
| 407 |
|
if (check_entity_relationship($expert->getGUID(), QUESTIONS_EXPERT_ROLE, $site->getGUID())) { |
| 408 |
|
$container_where[] = "(e.container_guid NOT IN ( |
| 409 |
|
SELECT ge.guid |
| 410 |
|
FROM {$dbprefix}entities ge |
| 411 |
|
WHERE ge.type = 'group' |
| 412 |
|
AND ge.site_guid = {$site->getGUID()} |
| 413 |
|
AND ge.enabled = 'yes' |
| 414 |
|
))"; |
| 415 |
|
} |
| 416 |
|
|
| 417 |
|
$group_options = [ |
| 418 |
|
'type' => 'group', |
mod/questions/pages/questions/todo.php 1 location
|
@@ 65-73 (lines=9) @@
|
| 62 |
|
$user = elgg_get_logged_in_user_entity(); |
| 63 |
|
$container_where = []; |
| 64 |
|
|
| 65 |
|
if (check_entity_relationship($user->getGUID(), QUESTIONS_EXPERT_ROLE, $site->getGUID())) { |
| 66 |
|
$container_where[] = "(e.container_guid NOT IN ( |
| 67 |
|
SELECT ge.guid |
| 68 |
|
FROM {$dbprefix}entities ge |
| 69 |
|
WHERE ge.type = 'group' |
| 70 |
|
AND ge.site_guid = {$site->getGUID()} |
| 71 |
|
AND ge.enabled = 'yes' |
| 72 |
|
))"; |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
$group_options = [ |
| 76 |
|
'type' => 'group', |
mod/questions/views/default/widgets/questions/content.php 1 location
|
@@ 59-67 (lines=9) @@
|
| 56 |
|
]; |
| 57 |
|
$options['order_by_metadata'] = ['name' => 'solution_time']; |
| 58 |
|
|
| 59 |
|
if (check_entity_relationship($user->getGUID(), QUESTIONS_EXPERT_ROLE, $site->getGUID())) { |
| 60 |
|
$container_where[] = "(e.container_guid NOT IN ( |
| 61 |
|
SELECT ge.guid |
| 62 |
|
FROM {$dbprefix}entities ge |
| 63 |
|
WHERE ge.type = 'group' |
| 64 |
|
AND ge.site_guid = {$site->getGUID()} |
| 65 |
|
AND ge.enabled = 'yes' |
| 66 |
|
))"; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
$group_options = [ |
| 70 |
|
'type' => 'group', |