There is code that disables the chatbox on admin pages. However, as an admin or editor I am often on non-admin pages and do not want to see the chatbox.

A simple checkbox in config to disable for logged in users would be useful.
Or, more fined grained disabling by by role in config.

Alternatively, this could be done with permissions. IE a permission for who sees the chatbox (currently there is only a permission for admin).

Comments

robbdavis created an issue. See original summary.

sahana _n’s picture

Disabled Livechat Settings for logged in users.

sahana _n’s picture

Status: Active » Needs review
harika gujjula’s picture

Status: Needs review » Needs work
+++ b/livechat.module
@@ -53,7 +62,10 @@ function _livechat_active($path) {
+        'hide_live_chat_settings_form' => NULL,

+++ b/src/Controller/LivechatController.php
@@ -58,8 +58,10 @@ class LivechatController extends ControllerBase {
+      '#hide_live_chat_settings_form' => $form,

Looks like Tpl changes are missing.

sahana _n’s picture

Status: Needs work » Needs review
StatusFileSize
new3.74 KB

The patch is updated, please review

mithun s’s picture

Tested the patch. Adds an extra configuration to hide the chat box for authenticated users.

mithun s’s picture

Status: Needs review » Reviewed & tested by the community

Moving to RTBC

  • Sahana _N authored 10afa11 on 8.x-3.x
    Issue #3064011 by Sahana _N: Should be a setting or permissions to...
markie’s picture

Status: Reviewed & tested by the community » Fixed

Patch applied and tested locally. Thanks for your help. Should have a release out in a few minutes.

markie’s picture

Status: Fixed » Closed (fixed)

New release is out. Thanks for your help again.