Skip to content

BUG: update_perms broken  #2892

@zoemartin01

Description

@zoemartin01

bot.py#update_perms is currently broken and only inserts into command_permissions even when it should write into level_permissions causing all existing command_permissions overrides in the database being completely overwritten every time you add or remove a new level permission.

Cause:
https://github.com/kyb3r/modmail/blob/802e74040797c9c64b285d50c4267625b4a5b82e/bot.py#L992

due to this the below following
https://github.com/kyb3r/modmail/blob/802e74040797c9c64b285d50c4267625b4a5b82e/bot.py#L1006
is always false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions