Index: trunk/extensions/EducationProgram/api/ApiEnlist.php |
— | — | @@ -96,7 +96,8 @@ |
97 | 97 | |
98 | 98 | switch ( $role ) { |
99 | 99 | case 'student': |
100 | | - return $user->isAllowed( 'ep-enroll' ) && $isSelf; |
| 100 | + return ( $user->isAllowed( 'ep-enroll' ) && $isSelf ) |
| 101 | + || ( $isRemove && $user->isAllowed( 'ep-remstudent' ) ); |
101 | 102 | break; |
102 | 103 | case 'instructor': |
103 | 104 | return $user->isAllowed( 'ep-instructor' ) |