Fix issue with profile functions.

This commit is contained in:
James Cole
2020-07-09 20:03:11 +02:00
parent 32e0a5bd80
commit 886475740a

View File

@@ -81,7 +81,7 @@ class ProfileController extends Controller
);
$loginProvider = config('firefly.login_provider');
$authGuard = config('firefly.authentication_guard');
$this->externalIdentity = 'eloquent' === $loginProvider || 'remote_user_guard' === $authGuard;
$this->externalIdentity = 'eloquent' !== $loginProvider || 'web' !== $authGuard;
$this->middleware(IsDemoUser::class)->except(['index']);
}