Fix DatabaseSqliteTest for db changes for chunk support.
[lhc/web/wiklou.git] / includes / specials / SpecialUploadStash.php
index 8901fa5..5d353f1 100644 (file)
@@ -45,10 +45,7 @@ class SpecialUploadStash extends UnlistedSpecialPage {
         * @return Boolean: success
         */
        public function execute( $subPage ) {
-               if ( !$this->userCanExecute( $this->getUser() ) ) {
-                       $this->displayRestrictionError();
-                       return false;
-               }
+               $this->checkPermissions();
 
                if ( $subPage === null || $subPage === '' ) {
                        return $this->showUploads();