Changeset 1280 for trunk/phpgwapi


Ignore:
Timestamp:
08/05/09 18:20:55 (15 years ago)
Author:
eduardoalex
Message:

Ticket #453 - Edição de grupos compartilhados.

Location:
trunk/phpgwapi/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.acl.inc.php

    r2 r1280  
    194194                        return $this->data; 
    195195                } 
    196  
     196                 
     197                function persist_shared_groups($location) 
     198                { 
     199                        $this->db->persist_shared_groups($location,$this->account_id); 
     200                } 
     201                 
    197202                /*! 
    198203                @function delete 
  • trunk/phpgwapi/inc/class.db.inc.php

    r2 r1280  
    11341134                } 
    11351135 
     1136                function persist_shared_groups($location,$account_id) 
     1137                { 
     1138 
     1139                        $sql = "delete from phpgw_cc_contact_grps where oid in ( 
     1140                                select A.oid from phpgw_cc_contact_grps A inner join phpgw_cc_groups B on A.id_group=B.id_group  
     1141                                inner join phpgw_cc_contact_conns C on A.id_connection=C.id_connection  
     1142                                inner join phpgw_cc_contact D on C.id_contact=D.id_contact 
     1143                                where B.owner=$location and D.id_owner=$account_id );"; 
     1144 
     1145                        return $this->query($sql); 
     1146                } 
     1147 
    11361148                /** 
    11371149                * Updates the data of one or more rows in a table, all data is quoted according to it's type 
Note: See TracChangeset for help on using the changeset viewer.