Ajax::verify_permission()

Description #

Verify permission of a user.

By default this method need to override from child class. If not overridden then ajax will always fail at this point.

Source #

File: classes/ajax.php

	protected function verify_permission() {
		$this->set_fail();
		$this->snackbar( __( 'You don\'t have enough permissions to do this action.', 'anspress-question-answer' ) );
		$this->send();
	}

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