<?php
namespace wcf\data\user;
use wcf\system\edit\EditHistoryManager;
use wcf\system\WCF;

/**
 * Executes actions on user generated content.
 * 
 * @author	Tim Duesterhus
 * @copyright	2001-2015 WoltLab GmbH
 * @license	GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 * @package	com.woltlab.wcf
 * @subpackage	data.user
 * @category	Community Framework
 */
class UserContentAction extends UserAction {
	/**
	 * Checks permissions to bulk revert.
	 */
	public function validateBulkRevert() {
		WCF::getSession()->checkPermissions('admin.content.canBulkRevertContentChanges');
	}
	
	/**
	 * Bulk reverts changes made to history saving objects.
	 */
	public function bulkRevert() {
		$this->readInteger('timeframe', true);
		if (!$this->parameters['timeframe']) {
			$this->parameters['timeframe'] = 86400 * 7;
		}
		
		EditHistoryManager::getInstance()->bulkRevert($this->objectIDs, $this->parameters['timeframe']);
	}
}

<?php
namespace wcf\data\user;
use wcf\system\edit\EditHistoryManager;
use wcf\system\WCF;

/**
 * Executes actions on user generated content.
 * 
 * @author	Tim Duesterhus
 * @copyright	2001-2015 WoltLab GmbH
 * @license	GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 * @package	com.woltlab.wcf
 * @subpackage	data.user
 * @category	Community Framework
 */
class UserContentAction extends UserAction {
	/**
	 * Checks permissions to bulk revert.
	 */
	public function validateBulkRevert() {
		WCF::getSession()->checkPermissions(array('admin.content.canBulkRevertContentChanges'));
	}
	
	/**
	 * Bulk reverts changes made to history saving objects.
	 */
	public function bulkRevert() {
		$this->readInteger('timeframe', true);
		if (!$this->parameters['timeframe']) {
			$this->parameters['timeframe'] = 86400 * 7;
		}
		
		EditHistoryManager::getInstance()->bulkRevert($this->objectIDs, $this->parameters['timeframe']);
	}
}

Fix permission check in `UserContentAction::validateBulkRevert()`
Fix permission check in `UserContentAction::validateBulkRevert()`
