How to add a class attribute to a table created using markdown

This has the code for reading the logged in user

Relevant JS (admin property is a guess it might be isAdmin or something along those lines)

var currentUser = Discourse.User.current();
if(currentUser != null && currentUser.staff && !currentUser.admin) {
       

You just have to figure out what event to put that code in (I think there is a page load event but I don’t recall it’s name)

1 Like