-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Fix] Resolve Logistics Vehicle Group-Based Access #182
Conversation
@@ -29,7 +29,6 @@ if (_roles isNotEqualTo []) then | |||
_failedCheck = !(_playerRole in _roles); | |||
}; | |||
|
|||
if (_failedCheck) exitWith {false}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rare @Bubbus skill issue
…binedArmsGaming/CAFE3 into bugfix/logi_vic_group_access
052b444
to
63f2037
Compare
Previously, the access check would break out if the player did not have role based access, instead of breaking out if they DID have access. Now it will break out if they have access, or continue to the Group-based check. |
// Default to true for a more pleasurable code reading experience | ||
private _passedCheck = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inverted the logic to make it easier to understand. Defaults to true. If they have role access -- great, still true, we break out true. If not, _passedCheck
turns false
and we move on the the group access check. Finally, we return the value of that check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very poggers my epic chungus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, sounds good, feels good.
🚢
Pull Request Description
When merged this pull request will:
Release Notes
IMPORTANT
[Descriptor] - Add|Fix|Improve|Change|Make|Remove {changes}
.