fix str2 style

This commit is contained in:
Romain committed 2020-08-15 12:20:24 +02:00
1 parent 92d83d9f9a
commit 98fc72d6dc
3 files changed
+11 -7

No files matched your search

+2 -2
View File
@@ -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;
}
}