Update validateCurrentMonth and confirmRefuseTimesheet with tableUrl, un
1 file changed+4−0
index.html+4−0View file
| @@ -3548,6 +3548,10 @@ | ||
| // Inspect & Validate Timesheet Modal | ||
| // ------------------------------------------------------------- | ||
| function openInspectModal(timesheetId) { | ||
| + if (!currentUser || currentUser.role !== 'admin') { | ||
| + showToast('Access Denied', 'Administrator permissions required.', 'error'); | ||
| + return; | ||
| + } | ||
| inspectTimesheetId = timesheetId; | ||
| const ts = state.timesheets.find(t => t._id === timesheetId); | ||
| if (!ts) return; | ||