Update validateCurrentMonth and confirmRefuseTimesheet with tableUrl, un

Ryan Danenberg committed commitaac57fd9e23ae9db666913ecced4156f3af62c19 Browse files
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;