mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-11 20:54:38 +08:00
8b550991a4
- Created BookChild class to share some page/chapter logic. - Gave entities the power to generate their own permissions and slugs. - Moved bits out of BaseController constructor since it was overly sticky. - Moved slug generation logic into its own class. - Created a facade for permissions due to high use. - Fixed failing test issues from last commits
17 lines
299 B
PHP
17 lines
299 B
PHP
<?php namespace BookStack\Facades;
|
|
|
|
use Illuminate\Support\Facades\Facade;
|
|
|
|
class Permissions extends Facade
|
|
{
|
|
/**
|
|
* Get the registered name of the component.
|
|
*
|
|
* @return string
|
|
*/
|
|
protected static function getFacadeAccessor()
|
|
{
|
|
return 'permissions';
|
|
}
|
|
}
|