Ajax Chat

Restrict to specific groups? - Ajax Chat

Restrict to specific groups?

by P_I » Tue Feb 25, 2020 6:32 pm

Is there a setting to restrict visibility and access to a specific group, i.e. only allow moderators to use the chat functionality?

The screenshots seem to indicate it might be possible via user settings.

ADDED: Can the default setting Enable Ajax Chat: be set to Disabled to allow the admin to configure all the settings/permissions before users/members/guests can use the functionality.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2526
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Restrict to specific groups?

by spaceace » Wed Feb 26, 2020 12:06 am

to restrict users/groups is in the permission system

to have chat disabled by default you need to...

disable and delete data

open spaceace\ajaxchat\migrations\install_ajaxchat.php
find

Code: Select all

array('config.add', array('display_ajax_chat', '1')),
replace with

Code: Select all

array('config.add', array('display_ajax_chat', '0')),
enable chat and it should be disabled ;)

edit: wrong file to edit had been corrected
Last edited by spaceace on Wed Feb 26, 2020 9:47 am
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm

Re: Restrict to specific groups?

by P_I » Wed Feb 26, 2020 12:16 am

Thanks for the quick reply and the indication of what to change.

Added: Are you sure the changes are in event/listener.php and not migrations/install_ajaxchat.php? I don't see any instances of

Code: Select all

array('config.add', array('display_ajax_chat', '1')),
in event/listener.php but do find it in migrations/install_ajaxchat.php
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2526
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Restrict to specific groups?

by spaceace » Wed Feb 26, 2020 9:46 am

you are correct, sorry. was really tired after 2 days of no sleep :lol:

i will edit my post ;)
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm