Toggle_Best_Answer::verify_permission()

Description #

Verify user permission.

Source #

File: ajax/toggle-best-answer.php

	protected function verify_permission() {
		$answer_id = $this->req( 'answer_id' );

		if ( empty( $answer_id ) || ! ap_user_can_select_answer( $answer_id ) ) {
			parent::verify_permission();
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment