mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
ada7c83e96
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();
|
|
}
|
|
}
|