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

moderation: add self-action prevention #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 13, 2024

  1. moderation: add self-action prevention

    * The problem is that an admin could block his own account. With this change it is possible to prevent the admin from doing that.
    * Prevent self-action for: block, deactivate, restore, activate and approve.
    * Update tests for self-action prevention
    * introduce PreventSelf generator
    * introduce _check_manage_permissions in users service
    * add "PreventSelf" into "can_manage" permission
    Samk13 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    80a1149 View commit details
    Browse the repository at this point in the history