Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello everyone,

Is it possible to hide certain fields in the admin panel depending on the access level of a user?
I know "k_user_access_level" exists, but I tried this:

Code: Select all
<cms:field 'hide'>
<cms:if k_user_access_level ge '10' >
    <cms:editable type="group" name="client_evenement" label="Volet client/évènement" collapsed="1" order="4"/>
    </cms:if>
  </cms:field>


or without the "<cms:field>" wrapping the code

Code: Select all
<cms:if k_user_access_level ge '10' >
    <cms:editable type="group" name="client_evenement" label="Volet client/évènement" collapsed="1" order="4"/>
    </cms:if>


And it's not working. The group tab is hidden even as a Super admin, but its content is visible outside of the tab.

I know there's an add-on where you can hide specific pages depending on the user level, but here, I need to hide specific editable regions of the page depending on the user level.

Thank you very much!
I hope this post might give you an idea: viewtopic.php?p=14563#p14563
Image
where innovation meets technology
With v2.x, we can also use the following variation of the solution @genxcoders suggested -
viewtopic.php?f=4&t=11348&p=29943#p29936

Hope it helps.
Thanks guys!
KK's solution did the trick :) Thanks again!
4 posts Page 1 of 1
cron