Changeset 2090
- Timestamp:
- 03/01/10 09:02:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r1998 r2090 1344 1344 'relatives' => array ($t->mask), 1345 1345 'attributes' => $set_attributes_array 1346 ) 1346 ), 1347 true 1347 1348 ); 1348 1349 if (!(strpos(strtoupper($record['mime_type']),'IMAGE') === FALSE)) … … 2109 2110 * See vfs_shared 2110 2111 */ 2111 function set_attributes ($data )2112 function set_attributes ($data,$isNewFile = false) 2112 2113 { 2113 2114 if (!is_array ($data)) … … 2133 2134 This is kind of trivial, given that set_attributes () can change owner_id, 2134 2135 size, etc. 2135 */ 2136 if (!$this->acl_check (array( 2137 'string' => $p->fake_full_path, 2136 */ 2137 if($isNewFile) 2138 { 2139 if ( !$this->acl_check (array( 2140 'string' => $p->fake_full_path, 2141 'relatives' => array ($p->mask), 2142 'operation' => PHPGW_ACL_ADD 2143 )) 2144 ) 2145 { 2146 return False; 2147 } 2148 }elseif (!$this->acl_check (array( 2149 'string' => $p->fake_full_path, 2138 2150 'relatives' => array ($p->mask), 2139 2151 'operation' => PHPGW_ACL_EDIT … … 2143 2155 return False; 2144 2156 } 2157 2145 2158 2146 2159 if (!$this->file_exists (array(
Note: See TracChangeset
for help on using the changeset viewer.