admin.access is not checked for the Administration section

Description

Although Doctor and Laboratorist users in demo data DB have no admin.access permission, they still see the Administration section

Environment

None

Activity

Steve Tsala November 21, 2024 at 7:19 AM
Edited

Other value than false(undefined included) is equivalent to

Alessandro Domanico November 20, 2024 at 4:37 PM

sorry, didn’t know that npm start automatically sets NODE_ENV=development, anyway the code about REACT_APP_ENABLE_PERMISSIONS could be this way to handle potential undefined values?

Alessandro Domanico November 20, 2024 at 3:30 PM
Edited

I see, but I don’t use .env, so that variable is totally missing (undefined) and I think in such case the default should be true

Steve Tsala November 20, 2024 at 7:13 AM

It's just  behaviour enabled for dev purposes.You can disable it by removing the REACT_APP_ENABLE_PERMISSIONS=false  or setting it to other value except false, in .env.development.

Unresolved

Details

Assignee

Reporter

Time tracking

45m logged

Priority

Created November 11, 2024 at 11:19 AM
Updated January 10, 2025 at 1:02 PM