Skip to content

Commit e189ac0

Browse files
committed
changed: create question notification is now group tool dependent
1 parent 77a54ce commit e189ac0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

classes/ColdTrick/Questions/Notifications/CreateQuestionNotificationEventHandler.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,11 @@ protected function getNotificationBody(\ElggUser $recipient, string $method): st
9595
protected function getQuestion(): \ElggQuestion {
9696
return $this->event->getObject();
9797
}
98+
99+
/**
100+
* {@inheritDoc}
101+
*/
102+
protected static function isConfigurableForGroup(\ElggGroup $group): bool {
103+
return $group->isToolEnabled('questions');
104+
}
98105
}

0 commit comments

Comments
 (0)