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

Reject user actions when banned #326

Merged
merged 11 commits into from
Jan 2, 2024
Merged

Reject user actions when banned #326

merged 11 commits into from
Jan 2, 2024

Conversation

e-five256
Copy link
Member

In places where user actions are rejected for magazine ban status, also check user ban status

/kbin made a similar change here https://codeberg.org/Kbin/kbin-core/commit/856c4af6e3cfe712d2de938348cea9e5ed48fa6d#diff-8a618e8d5292d99867ab274be47e07a82c5b7ed4 which made me realize we have the same issue, create entry / post / entry comment / post comment don't check user is banned status where they check magazine ban status

this adds the check, as well as adds it to permission checks on voters. That might be overkill, ideally the banned user should be logged out, but it also didn't feel necessarily wrong to safeguard if for any reason they didn't get logged out. willing to go either way on this

hoping to verify that banning a remote account doesn't stop content from being federated in on main, but does after this change

@e-five256 e-five256 mentioned this pull request Dec 5, 2023
@e-five256 e-five256 added the backend Backend related issues and pull requests label Dec 6, 2023
asdfzdfj pushed a commit to asdfzdfj/mbin that referenced this pull request Dec 11, 2023
check user ban status in places where magazine ban status is also
checked for entry, post, comment managers
asdfzdfj pushed a commit to asdfzdfj/mbin that referenced this pull request Dec 17, 2023
check user ban status in places where magazine ban status is also
checked for entry, post, comment managers
@e-five256 e-five256 marked this pull request as ready for review December 23, 2023 20:34
asdfzdfj pushed a commit to asdfzdfj/mbin that referenced this pull request Dec 25, 2023
check user ban status in places where magazine ban status is also
checked for entry, post, comment managers
asdfzdfj pushed a commit to asdfzdfj/mbin that referenced this pull request Dec 26, 2023
check user ban status in places where magazine ban status is also
checked for entry, post, comment managers
asdfzdfj pushed a commit to asdfzdfj/mbin that referenced this pull request Dec 30, 2023
check user ban status in places where magazine ban status is also
checked for entry, post, comment managers
@e-five256 e-five256 merged commit fb182cb into main Jan 2, 2024
7 checks passed
@e-five256 e-five256 deleted the check-instance-ban-status branch January 2, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants