dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd2135c
)
Make UserRightsProxy::addGroup/removeGroup return bool
author
Marius Hoch
<hoo@online.de>
Wed, 11 Feb 2015 01:14:27 +0000
(
02:14
+0100)
committer
Marius Hoch
<hoo@online.de>
Wed, 11 Feb 2015 01:14:27 +0000
(
02:14
+0100)
Required as of
e0094618b577a82209b9cc52cd15dda5e1deb784
Change-Id: I0cf9d8ee3ef9796d47442baff12a6cf8ae425d37
includes/UserRightsProxy.php
patch
|
blob
|
history
diff --git
a/includes/UserRightsProxy.php
b/includes/UserRightsProxy.php
index
53c69d8
..
3be5847
100644
(file)
--- a/
includes/UserRightsProxy.php
+++ b/
includes/UserRightsProxy.php
@@
-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;
}
/**