Hello,
How can I get if the authenticated user in the JS files and also the role?
How can I get if the authenticated user in the JS files and also the role?
const hasRole = (this.getUser().attributes.rolesIds || []).includes(targetRoleId);
Comment