wiki user group testing
This commit is contained in:
@@ -63,7 +63,7 @@ class WikiHelper {
|
|||||||
$groups = DokuGroupNames::all();
|
$groups = DokuGroupNames::all();
|
||||||
|
|
||||||
//Check if the user already belongs to the group
|
//Check if the user already belongs to the group
|
||||||
if(DokuMember::where(['gid' => $groupId])->count() > 0) {
|
if(DokuMember::where(['gid' => $groupId, 'uid' => $userId])->count() > 0) {
|
||||||
//If the count is greater than zero then we don't need to do anything,
|
//If the count is greater than zero then we don't need to do anything,
|
||||||
//just return false to indicate nothing was changed
|
//just return false to indicate nothing was changed
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user