R
R
Robert2015-09-05 16:49:23
JavaScript
Robert, 2015-09-05 16:49:23

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

1 answer(s)
U
Urbann91, 2015-09-05
@Jowan

You form server logic.
Well, for a registered / unregistered user, issue different content (with different content of model windows)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question