-
Notifications
You must be signed in to change notification settings - Fork 36
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
availableForNavigation() still returning TRUE #2544
Comments
It looks like the static property is used rather than the method in ResourceManager : https://github.com/laravel/nova/blob/c14a97d3ca9404951a1e69a5300c8f5cc0c70333/src/Tools/ResourceManager.php#L36 Should be |
I have the same issue with Nova version 3.4.1, the workaroud for the moment is to downgrade to 3.4.0 |
@mathd yes! that the solution for the moment :) |
hi @davidhemphill Can you please explain this issue ? |
@issour Yeah, fixed in v3.5.0! |
Description:
Hi !
The resource remains visible on the navigation even if the function returns false
public static function availableForNavigation(Request $request) { return $request->user()->isAdmin(); }
Steps To Reproduce:
copy and paste this function in resource post : Posts stills visible. even returning false manually
public static function availableForNavigation(Request $request) { return $request->user()->isAdmin(); }
Thx !!!
The text was updated successfully, but these errors were encountered: