I have a rather complicated application that allows a user to interact
with a volunteer management system via a user interface that is
updated by ajax calls through jQuery. I've encountered a design issue
and was hoping jQuery might save me from a redesign.

Is there a way to catch every ajax call through jQuery and access the
URL string so that I can check if the user has permission to create,
read, update or delete on that action? If the permission is denied
then I want to deny access gracefully, otherwise ignore and allow the
call to go through.

If there isn't a way to do this then I will have to go through every
line and add an ajax call to a permission checker function before
every ajax call.

Thanks,

Joe

Reply via email to