public function canReview($member, $record) {
		$extended = $this->extendedCan(__FUNCTION__, $member);
		if($extended !== null) return $extended;

		if (!class_exists('FrontEndWorkflowController')) {
			// Cannot review if there's no workflow module installed
			return false;
		}

		// NOTE(Jake): Might *want* to update the below logic so that when "$record === null"
		//			   the user must belong in the Restricted User/Group.
		if (!$this->WorkflowDefinitionID) {
			// Cannot review if there's no workflow applied to the object creator page.
			return false;
		}

		if ($record && !$record->getWorkflowInstance()) {
			// Cannot review if there's no workflow active on the record.
			return false;
		}

		if (!$member) {
			// Cannot review if not a logged in member.
			return false;
		}

		if (Permission::check('ADMIN', 'any', $member)) {
			return true;
		}

		if ($record) {
			$extended = $record->canEdit($member);
			if($extended !== null) return $extended;
		}
		return true;
	}
public function canReview($member, $record) {
		$extended = $this->extendedCan(__FUNCTION__, $member);
		if($extended !== null) return $extended;

		if (!class_exists('FrontEndWorkflowController')) {
			// Cannot review if there's no workflow module installed
			return false;
		}

		// NOTE(Jake): Might *want* to update the below logic so that when "$record === null"
		//			   the user must belong in the Restricted User/Group.
		if (!$this->WorkflowDefinitionID) {
			// Cannot review if there's no workflow applied to the object creator page.
			return false;
		}

		if ($record && !$record->getWorkflowInstance()) {
			// Cannot review if there's no workflow active on the record.
			return false;
		}

		if (!$member) {
			// Cannot review if not a logged in member.
			return false;
		}

		if (Permission::check('ADMIN', 'any', $member)) {
			return true;
		}

		if ($record) {
			$extended = $record->canEdit($member);
			if($extended !== null) return $extended;
		}
		return true;
	}
public function canReview ( $ member , $ record ) { $ extended = $ this -> extendedCan ( __FUNCTION__ , $ member ) ; if ( $ extended !== null ) return $ extended ; if ( ! class_exists ( 'FrontEndWorkflowController' ) ) { // Cannot review if there's no workflow module installed return false ; } // NOTE(Jake): Might *want* to update the below logic so that when "$record === null" //			   the user must belong in the Restricted User/Group. if ( ! $ this -> WorkflowDefinitionID ) { // Cannot review if there's no workflow applied to the object creator page. return false ; } if ( $ record && ! $ record -> getWorkflowInstance ( ) ) { // Cannot review if there's no workflow active on the record. return false ; } if ( ! $ member ) { // Cannot review if not a logged in member. return false ; } if ( Permission :: check ( 'ADMIN' , 'any' , $ member ) ) { return true ; } if ( $ record ) { $ extended = $ record -> canEdit ( $ member ) ; if ( $ extended !== null ) return $ extended ; } return true ; }
Check whether the member can review submissions or not

@param Member $member
@param Record $record Check if the user canReview() the record, if 'null' is supplied, check if user
can see the review listing page.
@return bool|null
Check whether the member can review submissions or not