TransWikia.com

How to access CurrentUser variable in JS file

Craft CMS Asked on August 9, 2021

I’m using control panel js plugin to add some javascript in users page inside control panel, to hide some data based on current logged in user role, but I’m unable to access the {{currentUser}} variable inside it.

Can anybody tell how to access this variable in js.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP