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

Error when restricting access via single route #284

Closed
spence01 opened this issue Oct 28, 2020 · 3 comments
Closed

Error when restricting access via single route #284

spence01 opened this issue Oct 28, 2020 · 3 comments

Comments

@spence01
Copy link

Fatal error: Declaration of Myth\Auth\Filters\RoleFilter::after(CodeIgniter\HTTP\RequestInterface $request, CodeIgniter\HTTP\ResponseInterface $response) must be compatible with CodeIgniter\Filters\FilterInterface::after(CodeIgniter\HTTP\RequestInterface $request, CodeIgniter\HTTP\ResponseInterface $response, $arguments = NULL) in C:\xampp\htdocs\CI4\vendor\myth\auth\src\Filters\RoleFilter.php on line 8

Route:
$routes->get('/private', 'PrivateArea::index',['filter' => 'role:admin']);

@MGatner
Copy link
Collaborator

MGatner commented Oct 28, 2020

See the pinned issue ☝️

#253

@spence01
Copy link
Author

Apologies.

@MGatner
Copy link
Collaborator

MGatner commented Oct 28, 2020

All good! You'd be surprised how common it is 😂

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