Fixed bug in group join/joinrequest code
Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
parent
111c563409
commit
e8d018d663
@ -89,7 +89,7 @@ class GroupController extends Controller
|
||||
);
|
||||
}
|
||||
|
||||
$membership = new UserGroupMembership();
|
||||
$membership = new UserGroupMembership($user, $group);
|
||||
$membership->setUser($user);
|
||||
$membership->setGroup($group);
|
||||
$membership->setMembershipRequestedAt(new \DateTime('now'));
|
||||
|
@ -20,7 +20,6 @@ class UserGroupMembership
|
||||
$this->setUser($user);
|
||||
$this->setGroup($group);
|
||||
$this->setMembershipRequestedAt(new \DateTime('now'));
|
||||
$this->setMembershipAcceptedAt(new \DateTime('now'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user