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

Permissions Issues related to broad scope on if statements #30

Open
RyleaStark opened this issue Dec 9, 2020 · 0 comments
Open

Permissions Issues related to broad scope on if statements #30

RyleaStark opened this issue Dec 9, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@RyleaStark
Copy link
Member

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;
}

@RyleaStark RyleaStark added the bug Something isn't working label Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant