Changeset 1524

Show
Ignore:
Timestamp:
08/22/04 13:48:16 (4 years ago)
Author:
morris
Message:

only check uploads privileges for finder drags

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCFiles.m

    r1505 r1524  
    1 /* $Id: WCFiles.m,v 1.46 2004/08/16 17:42:49 morris Exp $ */ 
     1/* $Id: WCFiles.m,v 1.47 2004/08/22 11:48:16 morris Exp $ */ 
    22 
    33/* 
     
    11291129                : _path; 
    11301130         
    1131         // --- check privilege 
    1132         if(![[_connection account] upload]) 
    1133                 return NSDragOperationNone; 
    1134          
    1135         if([destination type] != WCFileTypeUploads && [destination type] != WCFileTypeDropBox) { 
    1136                 if(![[_connection account] uploadAnywhere]) 
     1131        // --- check privilege for Finder drags 
     1132        if([types containsObject:NSFilenamesPboardType]) { 
     1133                if(![[_connection account] upload]) 
    11371134                        return NSDragOperationNone; 
     1135                 
     1136                if([destination type] != WCFileTypeUploads && [destination type] != WCFileTypeDropBox) { 
     1137                        if(![[_connection account] uploadAnywhere]) 
     1138                                return NSDragOperationNone; 
     1139                } 
    11381140        } 
    11391141