fix str2 style
This commit is contained in:
@@ -53,11 +53,11 @@ class EventPolicy
|
||||
*/
|
||||
public function update(User $user, Event $event)
|
||||
{
|
||||
if($user->id == $event->user_id) {
|
||||
if ($user->id == $event->user_id) {
|
||||
return true;
|
||||
} else {
|
||||
$testedUser = $event->guests()->where('users.id', $user->id)->first();
|
||||
if($testedUser !== null) {
|
||||
if ($testedUser !== null) {
|
||||
return $testedUser->pivot->is_staff;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user