Change-Id: Ib4169a8067f22f4a80295923e2aa77d151c4c47c
*
* @param $user User: the user to check, or null to use the context user
* @throws ErrorPageError
*
* @param $user User: the user to check, or null to use the context user
* @throws ErrorPageError
+ * @return bool True on success
*/
protected function checkCanExecute( User $user ) {
$right = $this->getRestriction();
*/
protected function checkCanExecute( User $user ) {
$right = $this->getRestriction();
if ( $this->requiresWrite() && wfReadOnly() ) {
throw new ReadOnlyError();
}
if ( $this->requiresWrite() && wfReadOnly() ) {
throw new ReadOnlyError();
}