@logic.auth_audit_exempt
def send_email_notifications(context, data_dict):
 if (not request.environ.get('paste.command_request')):
  _check_access('send_email_notifications', context, data_dict)
 if (not converters.asbool(config.get('ckan.activity_streams_email_notifications'))):
  raise ValidationError('ckan.activity_streams_email_notifications is not enabled in config')
 email_notifications.get_and_send_notifications_for_all_users()

@ logic . auth_audit_exempt def send_email_notifications ( context , data_dict ) : if ( not request . environ . get ( 'paste.command_request' ) ) : _check_access ( 'send_email_notifications' , context , data_dict ) if ( not converters . asbool ( config . get ( 'ckan.activity_streams_email_notifications' ) ) ) : raise ValidationError ( 'ckan.activity_streams_email_notifications is not enabled in config' ) email_notifications . get_and_send_notifications_for_all_users ( )
send any pending activity stream notification emails to users .