formatting
This commit is contained in:
parent
5c3f03855e
commit
7d62186292
@ -116,9 +116,7 @@ trait Users
|
|||||||
*/
|
*/
|
||||||
public function hasPendingInvitation()
|
public function hasPendingInvitation()
|
||||||
{
|
{
|
||||||
$invitation = UserInvitation::where('user_id', $this->id)->first();
|
return $this->getPendingInvitation() ? true : false;
|
||||||
|
|
||||||
return $invitation ? true : false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -128,8 +126,6 @@ trait Users
|
|||||||
*/
|
*/
|
||||||
public function getPendingInvitation()
|
public function getPendingInvitation()
|
||||||
{
|
{
|
||||||
$invitation = UserInvitation::where('user_id', $this->id)->first();
|
return UserInvitation::where('user_id', $this->id)->first();
|
||||||
|
|
||||||
return $invitation;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user