Update the permissions cache post-upgrade
This commit is contained in:
parent
b141061406
commit
3c6c5b174d
@ -5,6 +5,7 @@ namespace App\Http\Middleware;
|
|||||||
use App\DataMigration;
|
use App\DataMigration;
|
||||||
use App\Facade\UserConfig;
|
use App\Facade\UserConfig;
|
||||||
use App\Helpers\MiscHelper;
|
use App\Helpers\MiscHelper;
|
||||||
|
use App\Helpers\PermissionsHelper;
|
||||||
use Closure;
|
use Closure;
|
||||||
use Illuminate\Foundation\Application;
|
use Illuminate\Foundation\Application;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
@ -133,6 +134,10 @@ class AppInstallation
|
|||||||
// Save the new version number
|
// Save the new version number
|
||||||
$versionNumber->value = $appVersionNumber;
|
$versionNumber->value = $appVersionNumber;
|
||||||
$versionNumber->save();
|
$versionNumber->save();
|
||||||
|
|
||||||
|
// Rebuild the permissions cache
|
||||||
|
$helper = new PermissionsHelper();
|
||||||
|
$helper->rebuildCache();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user