r112220 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112219‎ | r112220 | r112221 >
Date:17:00, 23 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fixed removal auth check
Modified paths:
  • /trunk/extensions/EducationProgram/api/ApiEnlist.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/api/ApiEnlist.php
@@ -96,7 +96,8 @@
9797
9898 switch ( $role ) {
9999 case 'student':
100 - return $user->isAllowed( 'ep-enroll' ) && $isSelf;
 100+ return ( $user->isAllowed( 'ep-enroll' ) && $isSelf )
 101+ || ( $isRemove && $user->isAllowed( 'ep-remstudent' ) );
101102 break;
102103 case 'instructor':
103104 return $user->isAllowed( 'ep-instructor' )

Status & tagging log