phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc class.sotts.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] property/inc class.sotts.inc.php
Date: Mon, 30 Oct 2006 14:57:17 +0000

CVSROOT:        /sources/phpgroupware
Module name:    property
Changes by:     Sigurd Nes <sigurdne>   06/10/30 14:57:17

Modified files:
        inc            : class.sotts.inc.php 

Log message:
        More work on limited version for external users

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/class.sotts.inc.php?cvsroot=phpgroupware&r1=1.19&r2=1.20

Patches:
Index: class.sotts.inc.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/class.sotts.inc.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- class.sotts.inc.php 29 Oct 2006 20:04:40 -0000      1.19
+++ class.sotts.inc.php 30 Oct 2006 14:57:17 -0000      1.20
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package property
        * @subpackage helpdesk
-       * @version $Id: class.sotts.inc.php,v 1.19 2006/10/29 20:04:40 sigurdne 
Exp $
+       * @version $Id: class.sotts.inc.php,v 1.20 2006/10/30 14:57:17 sigurdne 
Exp $
        */
 
        /**
@@ -76,15 +76,15 @@
                        }
 
 
-/*                     $this->grants   = 
$GLOBALS['phpgw']->session->appsession('grants_ticket',$this->currentapp);
+                       $this->grants   = 
$GLOBALS['phpgw']->session->appsession('grants_ticket',$this->currentapp);
 
                        if(!$this->grants)
                        {
-                               $this->acl              = 
CreateObject('phpgwapi.acl');
+                               $this->acl              = & 
$GLOBALS['phpgw']->acl;
                                $this->grants           = 
$this->acl->get_grants($this->currentapp,'.ticket');
                                
$GLOBALS['phpgw']->session->appsession('grants_ticket',$this->currentapp,$this->grants);
                        }
-*/
+
                        if ($order)
                        {
                                $ordermethod = " order by $order $sort";
@@ -95,8 +95,8 @@
                        }
 
                        $where= 'WHERE';
+                       $filtermethod = '';
 
-/*                     $filtermethod = $where . ' ( fm_tts_tickets.user_id=' . 
$this->account;
                        if (is_array($this->grants))
                        {
                                $grants = $this->grants;
@@ -110,8 +110,11 @@
 
                        $where= 'AND';
 
-*/
-                       $filtermethod = '';
+                       if($tenant_id = 
$GLOBALS['phpgw']->session->appsession('tenant_id','property'))
+                       {
+                               $filtermethod .= $where . ' 
fm_tts_tickets.tenant_id=' . $tenant_id;
+                       }
+
                        if ($filter == 'closed'):
                        {
                                $filtermethod .= " $where 
fm_tts_tickets.status='X'";




reply via email to

[Prev in Thread] Current Thread [Next in Thread]