![]() |
mbintex 3/10/2022 |
As a workaround you could do different list pages for your different user groups - guess that would be more intuitive for yourself instead of all this hiding and show stuff and you have a solution for the show/hide items menu. Your navigation would have to handle the user groups and which list page to show though. |
![]() |
Sergey Kornilov admin 3/10/2022 |
You need to make sure that Security::getUserGroup() returns "Approvers" as a group name. Probably for starters you need to remove the condition and just hide the field without checking for the group name. |
P
|
psiconsultants author 3/10/2022 |
To clarify, the code I described above works just fine for hiding the columns on the table. It hides the specifics fields that I want hidden for the "Approvers" group. My issue is that the Columns Control item that allows the "Approvers" group users to still see those column names (cost_code, cost_index, cost_long) in the Columns Control object. It is very misleading because checking or unchecking them does nothing, but the column is hidden. I want to remove those values from the Columns Control object. See screenshot example. I know how to hide the Columns Control object altogether, but I don't want to do that. |