Changeset 1280 for trunk/phpgwapi
- Timestamp:
- 08/05/09 18:20:55 (15 years ago)
- Location:
- trunk/phpgwapi/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.acl.inc.php
r2 r1280 194 194 return $this->data; 195 195 } 196 196 197 function persist_shared_groups($location) 198 { 199 $this->db->persist_shared_groups($location,$this->account_id); 200 } 201 197 202 /*! 198 203 @function delete -
trunk/phpgwapi/inc/class.db.inc.php
r2 r1280 1134 1134 } 1135 1135 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 1136 1148 /** 1137 1149 * 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.