Changeset 2090


Ignore:
Timestamp:
03/01/10 09:02:33 (14 years ago)
Author:
amuller
Message:

Ticket #930 - Correção do problema adicionando uma flag no método

File:
1 edited

Legend:

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

    r1998 r2090  
    13441344                                                        'relatives'     => array ($t->mask), 
    13451345                                                        'attributes'    => $set_attributes_array 
    1346                                                 ) 
     1346                                                ), 
     1347                                                true 
    13471348                                        ); 
    13481349                                        if (!(strpos(strtoupper($record['mime_type']),'IMAGE') === FALSE)) 
     
    21092110                 * See vfs_shared 
    21102111                 */ 
    2111                 function set_attributes ($data) 
     2112                function set_attributes ($data,$isNewFile = false) 
    21122113                { 
    21132114                        if (!is_array ($data)) 
     
    21332134                           This is kind of trivial, given that set_attributes () can change owner_id, 
    21342135                           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, 
    21382150                                        'relatives'     => array ($p->mask), 
    21392151                                        'operation'     => PHPGW_ACL_EDIT 
     
    21432155                                return False; 
    21442156                        } 
     2157 
    21452158 
    21462159                        if (!$this->file_exists (array( 
Note: See TracChangeset for help on using the changeset viewer.