Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rightholder should be able to remove a distributor #1

Open
DanielMelero opened this issue Apr 1, 2023 · 0 comments
Open

Rightholder should be able to remove a distributor #1

DanielMelero opened this issue Apr 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@DanielMelero
Copy link
Member

Rightholder should have full control over the distribution of their music. Therefore if they consider that a distributor is not providing the proper service (high fees, low latency, unreachable host, etc) it should be possible to remove it from the list.

Add function:

function remove_distributor(bytes32 _song, address _dist_addr) external;

and use new modifier:

modifier onlyRightholder(bytes32 _song) {
        require(msg.sender == songs[_song].rightholder, "Only Rightholder is allowed");
        _;
}
@DanielMelero DanielMelero added the enhancement New feature or request label Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant