Merge "registration: Apply ResourceFileModulePaths to all modules"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 11 Feb 2015 01:54:50 +0000 (01:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 11 Feb 2015 01:54:50 +0000 (01:54 +0000)
includes/UserRightsProxy.php

index 53c69d8..3be5847 100644 (file)
@@ -211,6 +211,8 @@ class UserRightsProxy {
        /**
         * Replaces User::addUserGroup()
         * @param string $group
+        *
+        * @return bool
         */
        function addGroup( $group ) {
                $this->db->insert( 'user_groups',
@@ -220,11 +222,15 @@ class UserRightsProxy {
                        ),
                        __METHOD__,
                        array( 'IGNORE' ) );
+
+               return true;
        }
 
        /**
         * Replaces User::removeUserGroup()
         * @param string $group
+        *
+        * @return bool
         */
        function removeGroup( $group ) {
                $this->db->delete( 'user_groups',
@@ -233,6 +239,8 @@ class UserRightsProxy {
                                'ug_group' => $group,
                        ),
                        __METHOD__ );
+
+               return true;
        }
 
        /**