matching groups by nickname only must be for Local_group
This commit is contained in:
parent
98cd4ed66a
commit
9c6d426b44
|
@ -142,8 +142,8 @@ class QvitterAction extends ApiAction
|
||||||
$group_id = $group_id_or_name;
|
$group_id = $group_id_or_name;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$group = User_group::getKV('nickname', $group_id_or_name);
|
$group = Local_group::getKV('nickname', $group_id_or_name);
|
||||||
$group_id = $group->id;
|
$group_id = $group->group_id;
|
||||||
$group_name = $group_id_or_name;
|
$group_name = $group_id_or_name;
|
||||||
}
|
}
|
||||||
if(preg_match("/^[a-zA-Z0-9]+$/", $group_id_or_name) == 1) {
|
if(preg_match("/^[a-zA-Z0-9]+$/", $group_id_or_name) == 1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user