fix str2 style
This commit is contained in:
1 parent
92d83d9f9a
commit
98fc72d6dc
3 files changed
+11
-7
No files matched your search
@@ -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