Update remove attendance record actions from Payroll staff

This commit is contained in:
Nguyen Ngo
2025-09-11 17:14:01 -04:00
parent 286fd1ea43
commit 43b8e34f5b
2 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -459,7 +459,7 @@ function editRecord(recordId) {
// Check permissions before allowing edit
if (!hasEditPermission) {
alert(
"Access denied. Only administrators and payroll staff can edit attendance records."
"Access denied. Only administrators can edit attendance records."
);
return;
}
@@ -476,7 +476,7 @@ function deleteRecord(recordId, employeeId) {
// Check permissions before allowing delete
if (!hasEditPermission) {
alert(
"Access denied. Only administrators and payroll staff can delete attendance records."
"Access denied. Only administrators can delete attendance records."
);
return;
}
@@ -864,7 +864,7 @@ function createTableRow(record, displayIndex) {
</button>
`
: `
<span class="text-muted" title="Admin or Payroll access required">
<span class="text-muted" title="Admin access required">
<i class="fas fa-lock"></i>
</span>
`