Jump to content

Current RoleId


easycms

Recommended Posts

Hi,

 

I am looking to find the current roleid of the admin user in a template, is this possible? Some dropdown options in the admin interface i only want to be available to certain roles, the only way i can see that this is possible is adding the current roleid into the javascript in the header.tpl for the template assigned to that role and then in the adminmenu.js only display according to the roleid.

 

I have looked at the {debug} information and there doesn't seem to be anything in there that gives the current roleid.

 

If anyone can think of a better way to do this also, please let me know!

 

Cheers

 

Chris

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated