how to disable advanced search for a profile?

hi,in the user control panel, we can enable/disable the search feature by profile :
https://phpmaker.dev/docs/#/securityuserlevel.htmlthe column search means the 3 way (quick, extended and advanced).i wish to disable ONLY the advanced search for a profil, but let quick and extended . how can i do ?
At least, only in a table page. is there a tip to do that ?Best regards

It’s very easy!You may simply use Page_Render server event that belongs to the Search Page from your PHPMaker project.Since you want to check based on a User Profile, then you may check based on his/her Username, and if it match, then set a failure message, after that, redirect him/her back to the List Page by using terminate method that belongs to the Table/Page object.

thank you for this “server” tip !since yesterday, i had to find a “client” tip to perform such restriction :1 - i put the level in js variable in Page_Rendering event : SetClientVar(“levelpermission”, $user_level);
2- then on client start script, i hide the search button : if (levelpermission==4) $(‘a.btn.btn-default.ew-advanced-search’).hide(); //class for pm2020Thank you again.

If you only hide the Advanced Search button, then it will not solve the issue of end-users who already known the route of the Advanced Search.They are still be able to directly access the Advanced Search page by calling its route in browser. That’s why you still need the server side validation.