projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A bit of refactoring.
[timetracker.git]
/
WEB-INF
/
lib
/
ttGroupHelper.class.php
diff --git
a/WEB-INF/lib/ttGroupHelper.class.php
b/WEB-INF/lib/ttGroupHelper.class.php
index
167c620
..
05a3156
100644
(file)
--- a/
WEB-INF/lib/ttGroupHelper.class.php
+++ b/
WEB-INF/lib/ttGroupHelper.class.php
@@
-34,9
+34,10
@@
class ttGroupHelper {
// The getGroupName function returns group name.
static function getGroupName($group_id) {
// The getGroupName function returns group name.
static function getGroupName($group_id) {
+ global $user;
$mdb2 = getConnection();
$mdb2 = getConnection();
- $sql = "select name from tt_groups where id = $group_id and (status = 1 or status = 0)";
+ $sql = "select name from tt_groups where id = $group_id and
org_id = $user->org_id and
(status = 1 or status = 0)";
$res = $mdb2->query($sql);
if (!is_a($res, 'PEAR_Error')) {
$res = $mdb2->query($sql);
if (!is_a($res, 'PEAR_Error')) {