1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-10-13 11:47:56 +03:00

Renamed and cleaned up existing permission service classes use

This commit is contained in:
Dan Brown
2022-07-12 20:15:41 +01:00
parent 2d4f708c79
commit b0a4d3d059
22 changed files with 140 additions and 194 deletions

View File

@@ -42,11 +42,11 @@ class RegeneratePermissions extends Command
{
$connection = DB::getDefaultConnection();
if ($this->hasOption('database')) {
if ($this->option('database')) {
DB::setDefaultConnection($this->option('database'));
}
$this->permissionBuilder->buildJointPermissions();
$this->permissionBuilder->rebuildForAll();
DB::setDefaultConnection($connection);
$this->comment('Permissions regenerated');