[Fusionforge-commits] r9802 - trunk/gforge/common/mail

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 21 09:48:00 CEST 2010


Author: lolando
Date: 2010-05-21 09:48:00 +0200 (Fri, 21 May 2010)
New Revision: 9802

Modified:
   trunk/gforge/common/mail/MailingList.class.php
Log:
RBAC migration in progress

Modified: trunk/gforge/common/mail/MailingList.class.php
===================================================================
--- trunk/gforge/common/mail/MailingList.class.php	2010-05-21 07:47:48 UTC (rev 9801)
+++ trunk/gforge/common/mail/MailingList.class.php	2010-05-21 07:48:00 UTC (rev 9802)
@@ -402,14 +402,7 @@
 	 * @return boolean true if the user can administrate mailing lists
 	 */
 	function userIsAdmin() {
-		$perm = & $this->Group->getPermission ();
-		if (!$perm || !is_object($perm)) {
-			return false;
-		} elseif ($perm->isAdmin()) {
-			return true;
-		} else {
-			return false;
-		}
+		return forge_check_perm ('project_admin', $this->Group->getID()) ;
 	}
 }
 




More information about the Fusionforge-commits mailing list