A7 - switching the var used in the view so that non-admins can view the admin panel
This commit is contained in:
@@ -59,7 +59,7 @@ function makeActive(){
|
||||
};
|
||||
|
||||
function loadTable(){
|
||||
$("#userDataTable").load("/admin/"+ <%=current_user.user_id %> + "/get_all_users")
|
||||
$("#userDataTable").load("/admin/"+ <%= params[:admin_id] %> + "/get_all_users")
|
||||
};
|
||||
|
||||
$(document).ready(
|
||||
|
||||
Reference in New Issue
Block a user