Closed bezhanSalleh closed 2 months ago
Enhancements to the FilamentShield.php file
This file now has some updated features. Firstly, it has been configured to collect all the pages and their corresponding clusters. Secondly, some modifications have been made to the getPages
method. Now it filters out pages that are associated with clusters. Lastly, the getEntitiesPermissions
method has also been revamped. The new version removes duplicate entity permissions which improves performance and reduces redundancy.
Necessary modifications made to the HasPageShield.php file
There are several key modifications to this file. The canView
method was renamed to canAccess
to better align with its functionality. Further, the return statement of shouldRegisterNavigation
now checks canAccess
instead of canView
, considering this name change. Finally, removal of the original canView
method was performed and modifications were made to canAccess
, improving efficiency and clarity in the code.
fixes #358