Here's what I'm trying to do: if a user belongs to a certain group, then, the developer mode is activated.
But I can't get to understand which variable I should set. I don't want to reload the page but rather set some variable so that, in the next reload, the developer mode is activated.
Thus, the problem has become how to get the user's permissions using js. When the user logs in, I want to see if he is part of a certain group and, if so, set the instance.session.debug to true.
I'm building a module to help developers and this would be a really nice fature.
Alternatively, python could reload the page in some way, passing the "debug" parametre into the URL. Is this possible?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/31/15, 6:59 AM|
|Seen: 836 times|
|Last updated: 11/7/15, 6:40 PM|