git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 6d9ea620 authored by chimo's avatar chimo

Fix group-join request rejections

parent 831e9db7
......@@ -76,18 +76,15 @@ class Group_join_queue extends Managed_DataObject
/**
* Abort the pending group join...
*
* @param User_group $group
*/
function abort()
{
$profile = $this->getMember();
$group = $this->getGroup();
if ($request) {
if (Event::handle('StartCancelJoinGroup', array($profile, $group))) {
$this->delete();
Event::handle('EndCancelJoinGroup', array($profile, $group));
}
if (Event::handle('StartCancelJoinGroup', array($profile, $group))) {
$this->delete();
Event::handle('EndCancelJoinGroup', array($profile, $group));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment