Minor changes in kernel code.

This commit is contained in:
James Cole
2020-11-25 06:25:08 +01:00
parent 9a658b60fb
commit 16018109c8
3 changed files with 17 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ class Kernel extends HttpKernel
// MUST be logged in
// MUST have 2fa
// MUST be confirmed.
// (this group includes the other Firefly middleware)
// (this group includes the other Firefly III middleware)
'user-full-auth' => [
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
@@ -162,7 +162,7 @@ class Kernel extends HttpKernel
// MUST have 2fa
// MUST be confirmed.
// MUST have owner role
// (this group includes the other Firefly middleware)
// (this group includes the other Firefly III middleware)
'admin' => [
EncryptCookies::class,
AddQueuedCookiesToResponse::class,

View File

@@ -35,19 +35,23 @@ use FireflyIII\Support\System\GeneratesInstallationId;
class InstallationId
{
use GeneratesInstallationId;
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param Closure $next
*
* @throws FireflyException
*
* @return mixed
*
* @throws FireflyException
*
*/
public function handle($request, Closure $next)
{
$this->generateInstallationId();
return $next($request);