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 permission checking during ServerSideConnectionEvent.Login #3561

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

ItsDoot
Copy link
Member

@ItsDoot ItsDoot commented Nov 23, 2021

Fixes #3558.

Explanation

SubjectMixin provides common implementations of SubjectBridge, but excludes bridge$permDefault, and leaves it to be implemented by the other mixins (such as in ServerPlayerMixin).

During ServerSideConnectionEvent.Login, event.user() provides a SpongeUserView, which doesn't currently implement bridge$permDefault at runtime. I believe this PR should fix this in the simplest way by providing a common implementation, that other mixins such as ServerPlayerMixin are able to override.

@dualspiral dualspiral merged commit 57d3fa4 into SpongePowered:api-8 Nov 23, 2021
@dualspiral
Copy link
Contributor

Yup, sensible. Thanks!

@ItsDoot ItsDoot deleted the api8/fix-login-permission branch November 23, 2021 08:50
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.

Permission checking during the login event results in an exception
2 participants