Merge branch 'group-join-rejections' into 'nightly'
Fix group-join request rejections Relates to #105 See merge request !65
This commit is contained in:
commit
2dd968f94e
|
@ -76,20 +76,17 @@ 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Complete a pending group join...
|
||||
|
|
Loading…
Reference in New Issue
Block a user