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(); } }
Expand full source code Collapse full source code View on GitHub: ajax/toggle-best-answer.php:52
Add your comment