Replies: 3 comments 6 replies
-
hey @Marion5 , It looks likes the Log Viewer's API is not authenticated correctly. Here's a few things you might want to try:
'api_middleware' => [
\Opcodes\LogViewer\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
\Opcodes\LogViewer\Http\Middleware\AuthorizeLogViewer::class,
],
Let me know how that works out! |
Beta Was this translation helpful? Give feedback.
-
Hi @arukompas , i have checked the following: config/log-viewer.php:
Kernel.php:
and I tested this for Kernel, without success:
|
Beta Was this translation helpful? Give feedback.
-
Hey @Marion5
Thanks! |
Beta Was this translation helpful? Give feedback.
-
I want to authorize acces via Gate (https://log-viewer.opcodes.io/docs/3.x/configuration/access-to-log-viewer#via-viewlogviewer-gate)
In User I have a function isAdmin():
I defined in my AuthServiceProvider:
If I change my AuthServiceProvider:
it works.
Can you help me, why my solution with return $user-isAdmin(); does not work?
Beta Was this translation helpful? Give feedback.
All reactions