From: <var...@us...> - 2012-09-28 13:34:41
|
Revision: 8292 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8292&view=rev Author: vargenau Date: 2012-09-28 13:34:30 +0000 (Fri, 28 Sep 2012) Log Message: ----------- Massive move to getPermission() : no more user argument Modified Paths: -------------- trunk/wikiadmin.php Modified: trunk/wikiadmin.php =================================================================== --- trunk/wikiadmin.php 2012-09-28 13:31:15 UTC (rev 8291) +++ trunk/wikiadmin.php 2012-09-28 13:34:30 UTC (rev 8292) @@ -75,7 +75,7 @@ if (!($group->usesPlugin($pluginname))) { //check if the group has the wiki plugin active exit_error(sprintf(_('First activate the %s plugin through the Project\'s Admin Interface'),$pluginname),'home'); } - $userperm = $group->getPermission($user); //we'll check if the user belongs to the group + $userperm = $group->getPermission(); //we'll check if the user belongs to the group if ( !$userperm->IsMember()) { exit_permission_denied(_('You are not a member of this project'),'home'); } @@ -109,7 +109,7 @@ if ( ! ($group->usesPlugin ($pluginname)) ) {//check if the group has the plugin active exit_error(sprintf(_('First activate the %s plugin through the Project\'s Admin Interface'),$pluginname),'home'); } - $userperm = $group->getPermission($user); //we'll check if the user belongs to the group + $userperm = $group->getPermission(); //we'll check if the user belongs to the group if ( !$userperm->IsMember()) { exit_permission_denied(_('You are not a member of this project'),'home'); } @@ -167,4 +167,3 @@ } site_project_footer(array()); - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |