change ci to pass
This commit is contained in:
@@ -58,9 +58,9 @@ class EventPolicy
|
||||
} else {
|
||||
$testedUser = $event->guests()->where('users.id', $user->id)->first();
|
||||
if ($testedUser !== null) {
|
||||
if($testedUser->pivot->is_staff) {
|
||||
if ($testedUser->pivot->is_staff) {
|
||||
return $testedUser->pivot->is_staff;
|
||||
} else if (!$event->private) {
|
||||
} elseif (!$event->private) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user