Skip to content

Feat: prevent transfer of immutable hats#80

Merged
spengrah merged 3 commits intofeat/16x14from
feat/immutable-nontransferability
Jan 6, 2023
Merged

Feat: prevent transfer of immutable hats#80
spengrah merged 3 commits intofeat/16x14from
feat/immutable-nontransferability

Conversation

@spengrah
Copy link
Copy Markdown
Member

@spengrah spengrah commented Jan 4, 2023

This PR prevents changes transferHat such that immutable hats cannot be transferred, even by their admins. The only exception is tophats, which should always be able to transfer themselves.

FYI @topocount @gershido

@spengrah spengrah requested a review from nintynick January 4, 2023 16:12
@spengrah spengrah changed the base branch from main to feat/16x14 January 4, 2023 16:12
Copy link
Copy Markdown
Member

@nintynick nintynick left a comment

Choose a reason for hiding this comment

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

great catch, fixes loophole for admins. lgtm

@spengrah spengrah marked this pull request as ready for review January 6, 2023 17:05
@spengrah spengrah merged commit d45c8bd into feat/16x14 Jan 6, 2023
@spengrah spengrah deleted the feat/immutable-nontransferability branch January 6, 2023 17:05
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.

2 participants