Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 28, 2006, 11:13:01 PM (18 years ago)
Author:
patrick
Message:

found another bug: forward permissions from proxy to master

File:
1 edited

Legend:

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

    r9581 r9588  
    226226    else if( SharedNetworkData::getInstance()->isMasterServer() && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ))
    227227      hasPermission = true;
    228     // SPECIAL: get write permissions if i am proxy server and i am able to overwrite the client stuff
     228    // SPECIAL: permission to forward syncs from the master server to the clients
    229229    else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserClient(userId)
     230             && (*it)->checkPermission( PERMISSION_MASTER_SERVER) )
     231      hasPermission = true;
     232    // SPECIAL: permission to forward to the master server
     233    else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserMasterServer(userId)
    230234             && (*it)->checkPermission( PERMISSION_MASTER_SERVER) )
    231235      hasPermission = true;
Note: See TracChangeset for help on using the changeset viewer.