Answer the question
In order to leave comments, you need to log in
Running this or that javascript based on user permissions?
Imagine the situation: if the user under which we entered the site has the right to create records in the database, then when clicking, for example, on some element, js is launched, which in turn launches modal windows, etc.
If the user Does not have rights, then by clicking on the same element those actions do not occur. Something else is happening.
The question arises, how to distinguish between executable javascript for a user who has rights and a user who does not have them?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question