Jump to content

Possible to show specific links/areas to certain client groups only?


sford999

Recommended Posts

Is it possible to show links (or allow access to certain areas) to specific usergroups only?

 

What I'd like to do is have a usergroup "A" to have access to the ticketing system, but usergroup "B" to have no access to the ticketing system.

 

Is that possible?

not on Christmas Eve! :)

 

i've had a quick play with this and can think of two ways - depending on how you want to integrate it into your site...

 

once you have you client groups setup and assigned the clients to the appropriate group, you can either...

 

modify the navbar in header.tpl - it shows one menu if logged in, another if not... what you could do is add another {if} statement (or modify the one already there)..

 

so instead of just {if $loggedin}, you could use:

 

{if $loggedin and $clientsdetails.groupid eq "1"}
include links to ticket system
{elseif $loggedin and $clientsdetails.groupid eq "2"}
show no links to tickets
{else}
show other links
{/if}

actually for this example, you probably don't even need to check that they're logged in - because if they're not logged in, $clientsdetails won't exist.

 

the second way might be to modify supportticketsubmit-stepone.tpl and again check what their groupid is - if it equals 1, show the links to the departments; if equals 2, don't and display an appropriate message.

 

I think either method, or combining them, should work - although i've mentally powered down for a 48hr break from computers! :idea:

 

if you're still struggling with this after then, and no-one else has helped in the meantime, feel free to reply and i'll look at it again on my return!

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