]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttUser.class.php
Refactoring. Moved week_menu config option to plugin config.
[timetracker.git] / WEB-INF / lib / ttUser.class.php
index 14e7007b802a49a7f7ffe167cbe658c7fc4fe12f..62c786ce5832c52ac626cce582751bced1c7c93b 100644 (file)
@@ -248,6 +248,11 @@ class ttUser {
     return ($this->behalfGroup ? $this->behalfGroup->configHelper->getConfig() : $this->configHelper->getConfig());
   }
 
+  // getConfigHelper returns ttConfigHelper instance for active group.
+  function getConfigHelper() {
+    return ($this->behalfGroup ? $this->behalfGroup->configHelper : $this->configHelper);
+  }
+
   // getConfigOption returns true if an option is defined for group.
   // This helps us keeping a set of user attributes smaller.
   // We determine whether the option is set only on pages that need to know.