public function allow_unenrol_user(stdClass $instance, stdClass $ue) {
        if ($ue->status == ENROL_USER_SUSPENDED) {
            return true;
        }

        return false;
    }
public function allow_unenrol_user(stdClass $instance, stdClass $ue) {
        if ($ue->status == ENROL_USER_SUSPENDED) {
            return true;
        }

        return false;
    }
public function allow_unenrol_user ( stdClass $ instance , stdClass $ ue ) { if ( $ ue -> status == ENROL_USER_SUSPENDED ) { return true ; } return false ; }
Does this plugin allow manual unenrolment of a specific user?
Yes, but only if user suspended...

@param stdClass $instance course enrol instance
@param stdClass $ue record from user_enrolments table

@return bool - true means user with 'enrol/xxx:unenrol' may unenrol this user, false means nobody may touch this user enrolment
Does this plugin allow manual unenrolment of a specific user? Yes but only if user suspended ...