Update the permissions cache post-upgrade

This commit is contained in:
Andy Heathershaw 2019-08-06 21:17:53 +01:00
parent b141061406
commit 3c6c5b174d
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ namespace App\Http\Middleware;
use App\DataMigration;
use App\Facade\UserConfig;
use App\Helpers\MiscHelper;
use App\Helpers\PermissionsHelper;
use Closure;
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;
@ -133,6 +134,10 @@ class AppInstallation
// Save the new version number
$versionNumber->value = $appVersionNumber;
$versionNumber->save();
// Rebuild the permissions cache
$helper = new PermissionsHelper();
$helper->rebuildCache();
}
}
}