diff --git a/employee/templates/documents/document_requests.html b/employee/templates/documents/document_requests.html index 5f66fcc6a..edf7fcd17 100644 --- a/employee/templates/documents/document_requests.html +++ b/employee/templates/documents/document_requests.html @@ -63,9 +63,6 @@ }, traditional:true, success: function () { - // console.log("Success"); - // currentUrl = window.location.href; - // $("#view-container").load(currentUrl + " #view-container > *"); window.location.reload() }, @@ -83,7 +80,6 @@ ids.push($(this).attr("id")); } }); - console.log(ids) $.ajax({ type: "POST", url: "{% url 'document-bulk-reject' %}", @@ -94,10 +90,6 @@ }, traditional:true, success: function () { - console.log("Success"); - // currentUrl = window.location.href; - // $("#view-container").load(currentUrl + " #view-container"); - // demo = $("#view-container").html() window.location.reload() }, error: function () { @@ -110,7 +102,6 @@ var is_checked = $(this).prop("checked"); $(this).closest(".oh-accordion-meta__header").siblings(".oh-accordion-meta__body").find("[type=checkbox]").prop("checked", is_checked); - // console.log($(this).closest(".oh-accordion-meta__header").siblings(".oh-accordion-meta__body").find("[type=checkbox]")); }) }); diff --git a/employee/views.py b/employee/views.py index 4666c8704..1a99a543b 100755 --- a/employee/views.py +++ b/employee/views.py @@ -2645,7 +2645,7 @@ def employee_note_delete(request, note_id): @login_required -@manager_can_enter(perm="employee.view_bonuspoint") +@owner_can_enter("employee.view_bonuspoint", Employee) def bonus_points_tab(request, emp_id): """ This function is used to view Bonus Points tab of an employee in employee individual & profile view.