mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
fix: fix BD exception in Event.php
This commit is contained in:
@@ -26,6 +26,7 @@ class Kernel extends ConsoleKernel
|
||||
{
|
||||
// $schedule->command('inspire')
|
||||
// ->hourly();
|
||||
$schedule->command('telescope:prune')->weekly();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -102,7 +102,7 @@ class Event extends Model
|
||||
$error->location = "";
|
||||
$error->desc = "";
|
||||
$error->comment = "Le cours est manquant dans la base de données";
|
||||
$error->comment_officier = "Le cours est manquant dans la base de données";
|
||||
$error->comment_officer = "Le cours est manquant dans la base de données";
|
||||
$error->event_id = $this->id;
|
||||
$error->user_id = 1;
|
||||
return $error;
|
||||
|
||||
@@ -21,7 +21,7 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
|
||||
$this->hideSensitiveRequestDetails();
|
||||
|
||||
Telescope::filter(function (IncomingEntry $entry) {
|
||||
if ($this->app->environment('local')) {
|
||||
if (env('TELESCOPE_ENABLED', true) | $this->app->environment('local')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -63,8 +63,8 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
|
||||
protected function gate()
|
||||
{
|
||||
Gate::define('viewTelescope', function ($user) {
|
||||
return in_array($user->email, [
|
||||
'admin@exvps.ca'
|
||||
return in_array($user->rank->id, [
|
||||
'1',
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user