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

[Fix] Resolve Logistics Vehicle Group-Based Access #182

Merged
merged 6 commits into from
Aug 14, 2023

Conversation

dgibso29
Copy link
Collaborator

@dgibso29 dgibso29 commented Aug 14, 2023

Pull Request Description

When merged this pull request will:

Release Notes

  • Group-based Logistics Vehicle access will now work properly. Any player in a Group with access will now receive it, regardless of their role. In the default framework config, this is any member of COMMAND or ZEUS.

IMPORTANT

  • Testing has been completed as neccessary, depending on the nature & impact of the changes.
  • The Release Notes section below must be filled out appropriately to explain the changes made in this PR. This section will be used in Framework Changelogs.
  • If the contribution affects the wiki, please include your changes in this pull request so the wiki is consistently updated.
  • Contribution Guidelines are read, understood and applied.
  • Title of this PR uses our standard template [Descriptor] - Add|Fix|Improve|Change|Make|Remove {changes}.

@dgibso29 dgibso29 added the bug Something isn't working label Aug 14, 2023
@dgibso29 dgibso29 added this to the 1.7.0 milestone Aug 14, 2023
@@ -29,7 +29,6 @@ if (_roles isNotEqualTo []) then
_failedCheck = !(_playerRole in _roles);
};

if (_failedCheck) exitWith {false};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rare @Bubbus skill issue

@dgibso29 dgibso29 force-pushed the bugfix/logi_vic_group_access branch from 052b444 to 63f2037 Compare August 14, 2023 20:39
@dgibso29
Copy link
Collaborator Author

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.

Comment on lines +23 to +24
// Default to true for a more pleasurable code reading experience
private _passedCheck = true;
Copy link
Collaborator Author

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.

Copy link
Collaborator

@Bubbus Bubbus left a 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

Copy link
Collaborator

@Cre8or Cre8or left a 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.

🚢

@dgibso29 dgibso29 merged commit 8f18fc1 into develop Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] "ADD_GROUP" Logi Vehicle Macro Does Not Work
3 participants