[dokuwiki] [patch] dont send out commit e-mails for pages that are not world readable
- From: Mike Frysinger <vapier@xxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 24 Dec 2006 20:36:47 -0500
i tried creating an internal page in our wiki that is not world readable (@ALL
group is denied read access) and then made sure that no e-mail commits were
sent out ... but they were :)
the attached patch tweaks notify() so that if the acls for the current page
for group @ALL returns AUTH_NONE, no e-mail will be sent out
-mike
--- old-dokuwiki/inc/common.php 2006-12-24 20:18:41.000000000 -0500
+++ new-dokuwiki/inc/common.php 2006-12-24 20:18:41.000000000 -0500
@@ -824,6 +824,10 @@
global $conf;
global $INFO;
+ // Only send out notify mails if the page is world readable
+ if(auth_aclcheck($id,'','') == AUTH_NONE)
+ return;
+
// decide if there is something to do
if($who == 'admin'){
if(empty($conf['notify'])) return; //notify enabled?
Other related posts: