change ci to pass
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
image: lorisleiva/laravel-docker:latest
|
image: lorisleiva/laravel-docker:latest
|
||||||
|
|
||||||
|
# https://lorisleiva.com/laravel-deployment-using-gitlab-pipelines/
|
||||||
|
|
||||||
# Replace the last line with the following lines if you'd rather
|
# Replace the last line with the following lines if you'd rather
|
||||||
# leave StrictHostKeyChecking enabled (replace yourdomain.com):
|
# leave StrictHostKeyChecking enabled (replace yourdomain.com):
|
||||||
#
|
#
|
||||||
@@ -55,4 +57,7 @@ phpunit:
|
|||||||
- composer
|
- composer
|
||||||
script:
|
script:
|
||||||
- phpunit --coverage-text --colors=never
|
- phpunit --coverage-text --colors=never
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- storage/
|
||||||
|
|
||||||
|
|||||||
@@ -58,9 +58,9 @@ class EventPolicy
|
|||||||
} else {
|
} else {
|
||||||
$testedUser = $event->guests()->where('users.id', $user->id)->first();
|
$testedUser = $event->guests()->where('users.id', $user->id)->first();
|
||||||
if ($testedUser !== null) {
|
if ($testedUser !== null) {
|
||||||
if($testedUser->pivot->is_staff) {
|
if ($testedUser->pivot->is_staff) {
|
||||||
return $testedUser->pivot->is_staff;
|
return $testedUser->pivot->is_staff;
|
||||||
} else if (!$event->private) {
|
} elseif (!$event->private) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user