Skip to content

User is not available #491

@dmitryBuzz

Description

@dmitryBuzz

In all API requests, such as log-viewer/api/folders etc., the User is not available, so if I check user in

        LogViewer::auth(function ($request) {
            $user = $request ? $request->user() : auth()->user();
        });

or

 Gate::define('viewLogViewer', function (?User $user) {
        // return true if the user is allowed access to the Log Viewer
    });

The user is null. Which makes it impossible to use "Authorizing access to Log Viewer".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions