AnsweredAssumed Answered

User Roles in Javascript

Question asked by Thomas Benton on Jul 17, 2017
Latest reply on Sep 20, 2017 by rogrant@nmsu.edu

We're creating some custom help buttons in Canvas, primarily for faculty. Is there a straightforward way in Javascript to detect the type of user (Student vs. Teacher) who is viewing a page?

I'd hoped that some of the existing button divs (add Module, for instance) wouldn't exist for students and I could nestle this new button with those, but that doesn't appear to be the case.

Thank you for any thoughts! (And if there isn't a straightforward solution, I am happy to hear complicated ones!)

Outcomes