frappe / chat

Modern Chat App for Frappe
Other
106 stars 131 forks source link

fix: Dont show chat button if user role is restricted #47

Closed shariquerik closed 2 years ago

shariquerik commented 2 years ago

We have the option to restrict the chat feature in chat settings through the roles table. But it doesn't work because every user has a 'Guest' role and while checking if the user has common roles compared with roles added in the roles table it always returns true because the roles table was extended with ['All', 'Guest'].

image image