Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 29, 2006, 2:15:52 AM (18 years ago)
Author:
patrick
Message:

redirection seems to work good now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/synchronizeable.cc

    r9594 r9598  
    364364    // check if this synchronizeable has the permissions to write the data
    365365
    366 #if 0
    367 
    368     //  MASTER_SERVER |====> *
    369     if( SharedNetworkData::getInstance()->isMasterServer() && (*it)->checkPermission( PERMISSION_MASTER_SERVER ))
    370       hasPermission = true;
    371     else if( SharedNetworkData::getInstance()->isMasterServer() && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ))
    372       hasPermission = true;
    373 
    374     // PROXY_SERVER  |====> *
    375     else if( SharedNetworkData::getInstance()->isProxyServerActive() && (*it)->checkPermission( PERMISSION_PROXY_SERVER ))
    376       hasPermission = true;
    377     else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ))
    378       hasPermission = true;
    379     // PROXY_SERVER  |====> MASTER_SERVER
    380     else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserMasterServer(userId)
    381              && this->networkStream->isUserLocal(userId) && (*it)->checkPermission( PERMISSION_MASTER_SERVER))
    382       hasPermission = true;
    383     // PROXY_SERVER  |====> CLIENT
    384     else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserClient(userId)
    385              && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ) )
    386       hasPermission = true;
    387     else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserClient(userId)
    388              && (*it)->checkPermission( PERMISSION_MASTER_SERVER) )
    389       hasPermission = true;
    390 
    391     // OWNER         |====> *
    392     else if( this->owner == SharedNetworkData::getInstance()->getHostID() && (*it)->checkPermission( PERMISSION_OWNER ))
    393       hasPermission = true;
    394 
    395     // ALL           |====> *
    396     else if( (*it)->checkPermission( PERMISSION_ALL ))
    397       hasPermission = true;
    398 
    399     else
    400       hasPermission = false;
    401 
    402 #endif
     366
    403367
    404368
Note: See TracChangeset for help on using the changeset viewer.