The roles logic isn't working properly

Created on 14 March 2023, almost 2 years ago
Updated 16 March 2023, almost 2 years ago

Problem/Motivation

In the configuration, it says

If none of the roles are selected, all users will be tracked.

However, if no role is selected, the Javascript files are not added to the page.

Steps to reproduce

  1. Install the module;
  2. Uncheck all roles on /admin/config/system/linkedin-insights (keep "Force image usage only" unchecked);
  3. The tag is not being triggered;

Proposed resolution

  • fix the JS inclusion logic;
  • fix the noscript tag inclusion logic;
🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇷Brazil hfernandes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024