Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 error #190

Open
exshapoval opened this issue Mar 3, 2023 · 1 comment
Open

403 error #190

exshapoval opened this issue Mar 3, 2023 · 1 comment

Comments

@exshapoval
Copy link

Hi
I use your module

I use Laravel 10.1.5 and Nova 4.22.1 When in .env APP_ENV=local all ok But when APP_ENV=production I see error 403 on my admin/login page

How I can fix it for production?

@dualklip
Copy link

dualklip commented Mar 7, 2024

Your issue is not related with this package. Perhaps you are not configured properly your Nova Gate in https://github.com/vyuldashev/nova-permission/issues/190

This could be an example about how to do it:

/**
     * Register the Nova gate.
     *
     * This gate determines who can access Nova in non-local environments.
     *
     * @return void
     */
    protected function gate(): void
    {
        Gate::define('viewNova', function ($user) {
            return $user->hasRole('Super Admin') || $user->hasRole('Admin');
        });
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants