[Fusionforge-commits] r9994 - trunk/gforge/common/forum

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Jun 4 14:16:04 CEST 2010


Author: lolando
Date: 2010-06-04 14:16:04 +0200 (Fri, 04 Jun 2010)
New Revision: 9994

Modified:
   trunk/gforge/common/forum/ForumMessage.class.php
Log:
Fixed permission checking for posting to forums; this should fix the 'no welcome messages in newly-created forums' problem too

Modified: trunk/gforge/common/forum/ForumMessage.class.php
===================================================================
--- trunk/gforge/common/forum/ForumMessage.class.php	2010-06-04 12:09:13 UTC (rev 9993)
+++ trunk/gforge/common/forum/ForumMessage.class.php	2010-06-04 12:16:04 UTC (rev 9994)
@@ -368,7 +368,7 @@
 		db_begin();
 		
 		//now we check the moderation status of the forum and act accordingly
-		if (forge_check_perm ('forum', $this->Forum->getID(), 'post_unmoderated')) {
+		if (forge_check_perm ('forum', $this->Forum->getID(), 'unmoderated_post')) {
 			//no moderation
 			return $this->insertmsg($subject, $body, $thread_id, $is_followup_to,$user_id,$has_attach);
 		} else {




More information about the Fusionforge-commits mailing list