1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Major permission naming refactor and database migration cleanup

This commit is contained in:
Dan Brown
2016-05-01 21:20:50 +01:00
parent 05666efda9
commit 75a4fc905b
42 changed files with 481 additions and 351 deletions

View File

@ -2,7 +2,7 @@
namespace BookStack\Console\Commands;
use BookStack\Services\RestrictionService;
use BookStack\Services\PermissionService;
use Illuminate\Console\Command;
class RegeneratePermissions extends Command
@ -24,18 +24,18 @@ class RegeneratePermissions extends Command
/**
* The service to handle the permission system.
*
* @var RestrictionService
* @var PermissionService
*/
protected $restrictionService;
protected $permissionService;
/**
* Create a new command instance.
*
* @param RestrictionService $restrictionService
* @param PermissionService $permissionService
*/
public function __construct(RestrictionService $restrictionService)
public function __construct(PermissionService $permissionService)
{
$this->restrictionService = $restrictionService;
$this->permissionService = $permissionService;
parent::__construct();
}
@ -46,6 +46,6 @@ class RegeneratePermissions extends Command
*/
public function handle()
{
$this->restrictionService->buildEntityPermissions();
$this->permissionService->buildJointPermissions();
}
}