]> wagnertech.de Git - timetracker.git/blobdiff - cf_custom_field_add.php
Work in progress added more checks for access control.
[timetracker.git] / cf_custom_field_add.php
index 965c2aba165fdea4816a27875d194dff73bf22bd..1d293d37733af8d3f5b76d2b630838a32eafb823 100644 (file)
@@ -31,7 +31,7 @@ require_once('plugins/CustomFields.class.php');
 import('form.Form');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team)) {
+if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cf')) {
   header('Location: access_denied.php');
   exit();
 }