Use: addGroup() and removeGroup() should return boolean
authorAlexia E. Smith <washuu@gmail.com>
Tue, 16 Dec 2014 22:34:12 +0000 (16:34 -0600)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 23 Jan 2015 00:45:16 +0000 (16:45 -0800)
commite0094618b577a82209b9cc52cd15dda5e1deb784
tree4df0879159501e7ce78241d3a942f96e1dd7c83a
parentee52f191c3cac8159f91e6394f7deb59408d8d79
Use: addGroup() and removeGroup() should return boolean

Have User::addGroup() and User::removeGroup() methoids return a
boolean when their respective hooks return the respective boolean.

Fix SpecialUserrights to respect this return vale and update the
add/remove arrays accordingly.

This resolves an issue where a hook that prevents a group from
being added or removed still shows that group being changed in
the Userrights log.

Change-Id: I7621cc22b04ff41cf67bd434a1f89d31bdc2cffd
includes/User.php
includes/specials/SpecialUserrights.php