LycheeOrg / Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
https://lycheeorg.github.io/
MIT License
3.36k stars 297 forks source link

v5 - Logged in as a user U2F #2096

Closed tinohager closed 9 months ago

tinohager commented 10 months ago

Version: lycheeorg/lychee:nightly

In the left side menu, the menu entry U2F is visible, if i clicked it i get a error This action is unauthorized.

Symfony\Component\HttpKernel\Exception\
AccessDeniedHttpException
Show exception properties
in [/var/www/html/Lychee/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php ](file:///var/www/html/Lychee/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php#L491)(line 491)
            $e instanceof BackedEnumCaseNotFoundException => new NotFoundHttpException($e->getMessage(), $e),            $e instanceof ModelNotFoundException => new NotFoundHttpException($e->getMessage(), $e),            $e instanceof AuthorizationException && $e->hasStatus() => new HttpException(                $e->status(), $e->response()?->message() ?: (Response::$statusTexts[$e->status()] ?? 'Whoops, looks like something went wrong.'), $e            ),            $e instanceof AuthorizationException && ! $e->hasStatus() => new AccessDeniedHttpException($e->getMessage(), $e),            $e instanceof TokenMismatchException => new HttpException(419, $e->getMessage(), $e),            $e instanceof SuspiciousOperationException => new NotFoundHttpException('Bad hostname provided.', $e),            $e instanceof RecordsNotFoundException => new NotFoundHttpException('Not found.', $e),            default => $e,        };
ildyria commented 10 months ago

I will need to investigate that one. I was pretty sure it was working. >_<

ildyria commented 10 months ago

Okay found it.