X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttUser.class.php;h=37907c4d4ffc96aa8a7e8b73f7b2d2b86b853d0b;hb=ad98b13400fdc2fa2299a22c9bd54c4cd27960c3;hp=815eff7c703029dd91657aba72661edcbe1c3766;hpb=f022655c123fabf9a236b99f4ffe0591189a4b6d;p=timetracker.git diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index 815eff7c..37907c4d 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -52,6 +52,7 @@ class ttUser { var $uncompleted_indicators = 0; // Uncompleted time entry indicators (show nowhere or on users page). var $bcc_email = null; // Bcc email. var $currency = null; // Currency. + var $roles = 1; // Whether we use configurable roles. var $plugins = null; // Comma-separated list of enabled plugins. var $config = null; // Comma-separated list of miscellaneous config options. var $team = null; // Team name. @@ -116,6 +117,7 @@ class ttUser { $config_array = explode(',', $this->config); // Set user config options. + $this->roles = in_array('roles', $config_array); $this->show_holidays = in_array('show_holidays', $config_array); $this->punch_mode = in_array('punch_mode', $config_array); $this->allow_overlap = in_array('allow_overlap', $config_array);