Is there a way to assign an admin user as the “owner” of a group? I’m trying to add myself to a group to get the notifications of event approvals for a specific group, but since I’m an admin it just says I have access to all groups.
I don’t want to get notifications for all events that get submitted, just those submitted to a specific group.
Thanks for writing – I know what you mean, typically admin users we try to shield from getting extra notifications for groups (since they have access to every group). We’ve got a roadmap item to allow more nuancing of those email notification settings but it’s not currently queued up for 3.0 (I’ll add this as a +1 to that request, though).
As a workaround in the meantime, it’s possible with the onAfterPublicSubmission handler to set custom email notifications for certain groups. For example, this sample code would send a copy of the default notification for group id 1234 to my_custom_email@myschool.edu.
public function onAfterPublicSubmission($type, $id) {
global $_LW;
if ($_LW->_POST['submission_group'] == 1234) {
$_LW->d_messages->sendMail('my_custom_email@myschool.edu', 'public_submission_notification_subject', 'public_submission_notification_body', false, false, $message_vars);
}
}
Feel free to pull that into a custom module and adapt to your needs, hope this may help! As a reminder, if you add an onAfterPublicSubmission function like the above to a custom module class, you’ll also need to add it to the 'handlers'=>[...] array at the top of the custom module, to tell LiveWhale that the current module users that handler.