Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Permissions Issues related to broad scope on if statements #30

Description

@RyleaStark

Not every forum will experience these issues as it is related to a mixture of permissions being required to proceed with actions related to adding and removing badges on the user side of the forums.

Moderation tools refuse to show for mod+ ranks when appropriate flags are not sent from XenForo !$visitor->is_moderator is the likely culprit.

Commenting out the if statement restored functionality to user groups with appropriate permissions.

if (!$this->user_id || !$visitor->is_moderator) {
return false;
}

if (!$this->user_id || !$visitor->is_moderator || !$this->badge_count) {
return false;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions