ada7c83e96
Added to the entity_permissions table with further required fields and indexes. Wrote the code for checking permissions.
32 lines
778 B
PHP
32 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();
|
|
}
|
|
}
|