Hello.

How can I limit access to the menu item.

There is a table with accesses, its structure:

id id_staff id_cabinet (id кабинета в который может заходить сотрудник) vid_access (вид доступа, например: access_balance access (если 0 то запрещен доступ, если 1 то разрешен) 

How, for example, to restrict access to the menu section called balance ?

What do you advise?

  • Get the value of access / vid_access, check for the availability of the necessary data, show the item, if they are present. There may be options? - etki
  • this horse is understandable. I have on the page, there are several points that need to be limited in access. how to get the value from the access field for the balance item, which corresponds to the access_balance access type, thought to do something as if ($ row ['vid_access'] ==' access_balance ') {if ($ row [' access'] == '1 ') {echo' access allowed '; }} but something doesn’t really want to work, and the long version is not as good as it is, is it really possible to make a short decision? - Alexander Sizintsev

0