You can create a group and deny permissions to view messages and add to that group the user.Is there a way to disable the email notifications that go out to admins?
You will not find logs for this type of emails, but as you can see the message is quite explicit.where do we find the log for the mail that was not sent?
I know about those options but I want to stop the email for unread messages to be sent.You can create a group and deny permissions to view messages and add to that group the user.
You will not find logs for this type of emails, but as you can see the message is quite explicit.
Backend > Settings > Customers > Common > Unread messages reminder frequency = Disabled.but I want to stop the email for unread messages to be sent.
Will that stop the messages to be sent to administrators as well. Because the people who got the messages were not clients but system admins?Backend > Settings > Customers > Common > Unread messages reminder frequency = Disabled.
You can do the same for particular customer groups.
Yeah, this does not apply to users, only to customers.
It would be simple enough to push this functionality to users as well, but I am not sure I want to do this, I want users to receive all these messages so they know exactly what is going on with their system. @ghimes - what do you say?
There's no such thing for backend, the groups for users work totally different than the groups for customers.A group option for users will probably best
<?php
// allow only user 1, 2, 3, 4 and deny for rest of users.
hooks()->addFilter('console_command_daily_allow_send_unread_messages_reminder_to_user', function ($allow, $userId) {
$allowedUsers = [1, 2, 3, 4];
if (in_array($userId, $allowedUsers)) {
return true;
}
return false;
})
That should be fine… thanksThere's no such thing for backend, the groups for users work totally different than the groups for customers.
Would giving you a filter hook there to hook programatically and reject/allow emails for users would work?
Something like:
PHP:<?php // allow only user 1, 2, 3, 4 and deny for rest of users. hooks()->addFilter('console_command_daily_allow_send_unread_messages_reminder_to_user', function ($allow, $userId) { $allowedUsers = [1, 2, 3, 4]; if (in_array($userId, $allowedUsers)) { return true; } return false; })
You can implement it already, we're going to add the hook for the next release.
<?php
hooks()->addFilter('customer_action_logs_retention_days', function($daysCount) {
return 365;
});
Is there anything else that you would suggest we just need to be able to se what customers/admins has done…I don't think that can be used as an audit log because for example, when a subscriber is removed from the system, then we remove the logs for that as well.
If you're interested in keeping those logs for longer, that's not a problem from my side, you can do it from a filter hook:
PHP:<?php hooks()->addFilter('customer_action_logs_retention_days', function($daysCount) { return 365; });
This filter has been added today, you can add it and it will take effect with the next release.
But again, not sure how good this feature is as an audit log.