Commit 325335a815605483ded0021c121b967a9112d9dd

Authored by jonathan_byrne
1 parent f812d915

KTS-2321

"Need to make Admin Version Notifier only appear to the administrator"
Fixed. Added functionality to make the admin version notifier dashlet only appear to the administrator.

Committed By: Jonathan Byrne
Reviewed By: Jalaloedien Abrahams

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7115 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/AdminVersionPlugin/AdminVersionDashlet.php
... ... @@ -41,6 +41,11 @@ class AdminVersionDashlet extends KTBaseDashlet {
41 41 }
42 42 */
43 43  
  44 + function is_active($oUser) {
  45 + $this->oUser = $oUser;
  46 + return Permission::userIsSystemAdministrator($oUser);
  47 + }
  48 +
44 49 function render() {
45 50 global $main;
46 51 $main->requireJSResource("plugins/ktstandard/AdminVersionPlugin/js/update.js");
... ...