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

fix: Remove role restriction for removing functions #833

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

morgsmccauley
Copy link
Collaborator

@morgsmccauley morgsmccauley commented Jun 25, 2024

Also runs cargo format (1st commit)

closes: #822

@morgsmccauley morgsmccauley requested a review from a team as a code owner June 25, 2024 05:16
@morgsmccauley
Copy link
Collaborator Author

Deployed to both dev/prod contracts

@morgsmccauley morgsmccauley merged commit 5a38775 into main Jun 25, 2024
@morgsmccauley morgsmccauley deleted the fix/remove-delete-role-restriction branch June 25, 2024 05:26
self.assert_roles(vec![Role::Owner, Role::User]);
env::signer_account_id()
}
None => env::signer_account_id(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would also be useful if owner's could remove any indexer; large suspended indexers for instance.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They can - if account_id is specified, we'll only permit the tx if the signer is Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to delete Indexer after publishing
2 participants