[evolvis-commits] r15308: Fixed permission checking for posting to forums; this should fix the 'no welcome messages in newly-created forums' problem too

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 23:54:37 CET 2011


Author: mirabilos
Date: 2011-02-28 23:54:37 +0100 (Mon, 28 Feb 2011)
New Revision: 15308

Modified:
   trunk/gforge_base/evolvisforge-5.1/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_base/evolvisforge-5.1/gforge/common/forum/ForumMessage.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumMessage.class.php	2011-02-28 22:54:35 UTC (rev 15307)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumMessage.class.php	2011-02-28 22:54:37 UTC (rev 15308)
@@ -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 evolvis-commits mailing list