From 05a0266a5d32498bef5ef4523696b76637c2655d Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 20 Nov 2017 20:49:40 -0700 Subject: [PATCH] Add permission QWIKCLOCK_ADMIN --- lib/getshifttable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/getshifttable.php b/lib/getshifttable.php index c9d48af..c9d58c6 100644 --- a/lib/getshifttable.php +++ b/lib/getshifttable.php @@ -98,7 +98,7 @@ if ($showall) { ], $where); } -$showeditbtn = account_has_permission($_SESSION['username'], "QWIKCLOCK_MANAGE"); +$showeditbtn = account_has_permission($_SESSION['username'], "QWIKCLOCK_MANAGE") || account_has_permission($_SESSION['username'], "QWIKCLOCK_ADMIN"); for ($i = 0; $i < count($shifts); $i++) { $shifts[$i][0] = "";