You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title resources is showing even though the user does not have any of the appropriate permissions set for the resource menu items.
This can be fixed with a simple if statement in the "vendor\orchid\crud\src\Arbitrator.php" @ "registerMenu"
`private function registerMenu(Resource $resource, int $key): Arbitrator
{
if (! $resource::displayInNavigation()) {
return $this;
}
The text was updated successfully, but these errors were encountered:
TowlieeNetworks
changed the title
title resources is showing even though no permissions
Title resources is showing even though no permissions
Jun 21, 2022
Looks like proposed 'manage-crud-resource-*' is your application specific permissions, as well as user() function, and should not be part of library.
Just implement valid displayInNavigation() function in every resource (which can depends on your application logic/permissions) and title 'Resources' will disappear :)
title resources is showing even though the user does not have any of the appropriate permissions set for the resource menu items.
This can be fixed with a simple if statement in the "vendor\orchid\crud\src\Arbitrator.php" @ "registerMenu"
`private function registerMenu(Resource $resource, int $key): Arbitrator
{
if (! $resource::displayInNavigation()) {
return $this;
}
The text was updated successfully, but these errors were encountered: