Add bridge to check role on ajax calls