From b548ce1bf2e1175f72563fb0c0c986d551cd4b94 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 13 Apr 2018 23:09:32 +0000 Subject: [PATCH] Removed no longer needed isManager() function. --- WEB-INF/lib/ttUser.class.php | 8 -------- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index bce21e03..0af49300 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -150,14 +150,6 @@ class ttUser { return in_array($do_something, $this->rights); } - // isManager - determines whether current user is group manager. - // This is a legacy function that we are getting rid of by replacing with rights check. - function isManager() { - return $this->can('export_data'); // By default this is assigned to managers but not co-managers. - // Which is sufficient for now until we refactor all calls - // to this function and then remove it. - } - // isClient - determines whether current user is a client. function isClient() { return $this->is_client; diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 28ff0738..c9612607 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.88.4259 | Copyright © Anuko | +  Anuko Time Tracker 1.17.88.4260 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1