X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9a23a8c0a51b7ec38a96f525484134f3cb85dc7e..60638b6c4f5fb33cd431cabdfef2de83c570b4da:/WEB-INF/lib/common.lib.php diff --git a/WEB-INF/lib/common.lib.php b/WEB-INF/lib/common.lib.php index 4111c3e1..3644c058 100644 --- a/WEB-INF/lib/common.lib.php +++ b/WEB-INF/lib/common.lib.php @@ -341,11 +341,9 @@ function ttAccessCheck($required_rights) return true; } - - - - - - - -?> \ No newline at end of file +// ttPluginEnabled is used to check whether a plugin is enabled for user. +function ttPluginEnabled($plugin) +{ + global $user; + return in_array($plugin, explode(',', $user->plugins)); +}