mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 21:22:30 +00:00
![Dan Brown](/assets/img/avatar_default.png)
Added to the entity_permissions table with further required fields and indexes. Wrote the code for checking permissions.
33 lines
778 B
PHP
33 lines
778 B
PHP
<?php
|
|
|
|
namespace BookStack\Console;
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
/**
|
|
* The Artisan commands provided by your application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $commands = [
|
|
\BookStack\Console\Commands\Inspire::class,
|
|
\BookStack\Console\Commands\ResetViews::class,
|
|
\BookStack\Console\Commands\RegeneratePermissions::class,
|
|
];
|
|
|
|
/**
|
|
* Define the application's command schedule.
|
|
*
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
* @return void
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
$schedule->command('inspire')
|
|
->hourly();
|
|
}
|
|
}
|