X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fb37b1b49aedfe40651dcc57883ddbe9c605374d..7dc611a9564d114fd401c19f72c2525bc0e7494a:/WEB-INF/lib/ttUser.class.php diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index 2d7f1c98..a95fa72e 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -235,6 +235,12 @@ class ttUser { return $config->getDefinedValue($name); } + // getConfigInt retruns an integer value defined in a group, or false. + function getConfigInt($name) { + $config = new ttConfigHelper($this->getConfig()); + return $config->getIntValue($name); + } + // can - determines whether user has a right to do something. function can($do_something) { return in_array($do_something, $this->rights);