From 9ce502c1b9ea5ca99befe52624b927110312f26c Mon Sep 17 00:00:00 2001 From: wrongecho Date: Wed, 5 Feb 2025 14:31:31 +0000 Subject: [PATCH] Comment old perms functions --- functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index fd27e6a9..b5a10887 100644 --- a/functions.php +++ b/functions.php @@ -533,7 +533,7 @@ function validateCSRFToken($token) } /* - * Role validation + * LEGACY Role validation * Admin - 3 * Tech - 2 * Accountant - 1 @@ -549,6 +549,7 @@ function validateAdminRole() } } +// LEGACY // Validates a user is a tech (or admin). Stops page load and attempts to direct away from the page if not (i.e. user is an accountant) function validateTechRole() { @@ -560,6 +561,7 @@ function validateTechRole() } } +// LEGACY // Validates a user is an accountant (or admin). Stops page load and attempts to direct away from the page if not (i.e. user is a tech) function validateAccountantRole() {