CORIONplatform / solidity

GNU General Public License v3.0
12 stars 9 forks source link

The owner of the provider can set himself as an admin #155

Closed gundas closed 7 years ago

gundas commented 7 years ago

The _openProvider(...) function checks that the owner does not specify himself as an admin:

        if ( admin == msg.sender ) {
            admin = 0x00;
        }

However the owner can set himself as an admin by calling setProviderDetails(...). If the Provider has been created as IsForRent=true, the owner will loose his senderReward share (he will receive only adminReward share).

iFA88 commented 7 years ago

Yes, you have right!