[FIX] EMPLOYEE: Permission for Bonus point view function

This commit is contained in:
Horilla
2024-01-25 15:47:20 +05:30
parent 8a0b9ca296
commit 154ec104ba
2 changed files with 1 additions and 10 deletions

View File

@@ -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]"));
})
});
</script>

View File

@@ -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.