r75621 copy-paste fail
[lhc/web/wiklou.git] / includes / api / ApiUserrights.php
index 5f253ce..8b3adf3 100644 (file)
@@ -58,6 +58,9 @@ class ApiUserrights extends ApiBase {
                $this->getResult()->addValue( null, $this->getModuleName(), $r );
        }
 
+       /**
+        * @return User
+        */
        private function getUser() {
                if ( $this->mUser !== null ) {
                        return $this->mUser;
@@ -121,10 +124,8 @@ class ApiUserrights extends ApiBase {
                return 'Add/remove a user to/from groups';
        }
 
-       public function getPossibleErrors() {
-               return array_merge( parent::getPossibleErrors(), array(
-                       array( 'missingparam', 'user' ),
-               ) );
+       public function needsToken() {
+               return true;
        }
 
        public function getTokenSalt() {