Right now if you set a department's permissions so that only registered users or registered users with a verified email can submit tickets or start chats, then it hides the department from the dropdown on the portal and chat widget if the user doesn't meet those requirements.
But I don't see how that makes sense, since how does the user know they have to login in order to see those departments? There is no notification of any kind. It simply hides the departments from view.
I think if you set permissions so that only registered users or registered users with a verified email can submit a ticket or start a live chat, then it should redirect to the login page if they select a department which has such permissions and they're not logged in.
Doesn't that make a lot more sense? And if the user is logged in and the permission is registered user with verified email, it shows a message telling the user they need to verify their email before they can proceed.