Left Menu Navigation Hidden

st3vi3 wrote on Tuesday, May 07, 2013:

Hi Everyone,

Since I’m a newbie at this open source, just want to ask about the left navigation which means the menu at the left of the interface. (Forgive me if this topic is not related in this “Developers Forum”)

My questions is, if I already create a new user, i.e: front for Front Office, I just want that user (front) only can see CALENDAR, MESSAGES and PATIENT/CLIENT at left menu navigation. Can openEMR hide the other menus like FEES, PROCEDURES and etc? And how to hidden that?

I saw at Access Control List on part of Administrator, I can’t change any properties or any menu to define that front user only can see CALENDAR, MESSAGES and PATIENT/CLIENT at left menu navigation.

Can anyone help me on this kind of question?

Thanks and regards

anonymous wrote on Tuesday, May 07, 2013:

You’ll need to customize /interface/main/left_nav.php

fsgl wrote on Tuesday, May 07, 2013:

If you want the Front Office to have access to Appointments(Calendar) and Demographics (Patients/Clients) only; go to Administration->ACL, click Groups and Access Controls, then click the Edit link next to Front Office-write. Move Patient Notes and Transactions to the Inactive Box if so desired. See attachments.

By default the Front Office will have access to Messages.

It sounds as if your primary objective is to limit access for the Front Office. If access has been limited, is hiding the menu still a priority?

st3vi3 wrote on Wednesday, May 08, 2013:

Thanks McGillicutty

If I need customize /interface/main/left_nav.php, which means, I customize all the interface included Administration part wright? I try to change and customize that, but it changed all interface user. I don’t want it changed all user included Administration site (let be default). I just want change other users like front, doctor or etc.

Thanks again sir :slight_smile:

st3vi3 wrote on Wednesday, May 08, 2013:

Thanks fsgl

For me, hiding the menu is my priority. I don’t want that user (front) see any of menu has been stated.

Thanks for helping sir ^^

anonymous wrote on Wednesday, May 08, 2013:

I do agree that hiding the menu is a much cleaner approach as opposed to users receiving the “Not Authorized” notice. Fortunately, our office is quite small and I am the only one that handles billing matters, so my customization was to place the if (!$disallowed[‘adm’]) statement before any menu items i didn’t want other employees to access.

I’m not familiar enough with the ACL code to help any further. Perhaps a customization to the acl_check function defined in library/acl.inc is needed…?

fsgl wrote on Wednesday, May 08, 2013:

Hi Azri,

You are welcome. It was my pleasure.

I can’t tell from your posts if you are aware of the phpGACL module, which can be accessed via the Advanced link to the right of Access Control List Administration. Perhaps the Manual will give you some clues regarding the method of hiding portions of the menu from the Front Desk.

If the module is of help, let us know so other Forum members can benefit from your experience.

st3vi3 wrote on Friday, May 10, 2013:

Thanks to McGillicutty and fsgl,

I have try to do lot of changes on that interface. And finally I found another solution to customize openEMR which is I create another folder (give another/big space in server), to call or to define another user.

Btw, thank you very much for that helping guys.

kickme345 wrote on Monday, May 26, 2014:

Hi, Mcgillicutty, I tried adding <?php if (!$disallowed['adm']) { ?> in frong of “reports” menu item… However, it failed to function well. Could u pls tell me how to do it properly, thx~