xedro99 Posted October 1, 2018 Share Posted October 1, 2018 Hi there, I was wondering how do I restrict support ticket departments if a certain service is active. I want to display a ticketing department only if server id "x" is active, if not then hide it. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 2, 2018 Share Posted October 2, 2018 In ClientArea action hook run a query to detect if the currently logged in client has your special product/service. If the query returns false (he hasn't the product) remove from the array of departments the one he shouldn't see. Don't forget to redirect him on some "Access Denied" page in case he still tries to submit the ticket guessing department ID. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 2, 2018 Share Posted October 2, 2018 in addition to @Kian suggestion, I would add to make that support ticket department that you want to hide 'Clients Only' - that will prevent non-logged in users from seeing it too. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.