Skip Navigation

toolset_access shortcodes are not protecting content and being printed as shortcodes if used in AJAX Views

Resolved

Reported for: Toolset Access 2.7

Resolved in: 2.7.2

Symptoms

Toolset Access offers a toolset_access shortcode with which you can hide or show contents wrapped in it conditionally to users depending on the role set in the shortcode.

If used in a View which uses an AJAX search (or pagination) the toolset_access shortcode will not protect the content anymore since it will not execute but simply print as a shortcode on the front-end.

Workaround

Our Developers are aware of the issue and will fix this as soon as possible.

In the meantime, you can use one of the following workarounds:

  1. Use HTML Conditionals, or, do not use AJAX in the View.

Or

  1. Download this patch file, expand it and use the main.php file it contains, to overwrite the file with the same name, found in the ../types-access/application/controllers/ folder.

Comments are closed