AnsweredAssumed Answered

current_user_roles options

Question asked by Anthony Hess(Local) on Sep 26, 2016
Latest reply on Nov 18, 2016 by Stefanie Sanders


Is there a way to call out specific admin roles for custom JS? Using current_user_roles, you can only get 'user', 'student', 'teacher' or 'admin', correct?


We would like to add JS that only impacts certain admins, not all admins. For example:

if($.inArray('admin',ENV['current_user_roles']) == -1) { ...

Would not apply to all admins. We want it to not apply to a certain set of admins (account roles).



Anthony Hess