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

[MIRROR] Fix robocontrol access runtime #2584

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1655
Original PR: tgstation/tgstation#82242

About The Pull Request

image

check_access expects an item, such as an ID card, to... check access. Not a mob.

We can circumvent this entirely by using allowed.

But this has an averse effect in that allowed will only check the user's ID, not the ID in the mod PC.

So we need to run a separate check of check_access for the computer ID card.

Changelog

🆑 Melbert
fix: Robocontrol should work better.
/:cl:

* Fix robocontrol access runtime (#82242)

## About The Pull Request


![image](https://github.com/tgstation/tgstation/assets/51863163/568fa916-d167-4038-b0e8-7b0870754bf9)

`check_access` expects an item, such as an ID card, to... check access.
Not a mob.

We can circumvent this entirely by using `allowed`.

But this has an averse effect in that `allowed` will only check the
user's ID, not the ID in the mod PC.

So we need to run a separate check of `check_access` for the computer ID
card.

## Changelog

:cl: Melbert
fix: Robocontrol should work better.
/:cl:

---------

Co-authored-by: san7890 <[email protected]>

* Fix robocontrol access runtime

---------

Co-authored-by: MrMelbert <[email protected]>
Co-authored-by: san7890 <[email protected]>
@ReezeBL ReezeBL merged commit f9b9a95 into master Mar 27, 2024
24 checks passed
@ReezeBL ReezeBL deleted the upstream-mirror-1655 branch March 27, 2024 17:39
AnywayFarus added a commit that referenced this pull request Mar 27, 2024
Iajret pushed a commit that referenced this pull request May 20, 2024
* Sets cache lifespan to 0

* Update world.dm

---------

Co-authored-by: Watermelon914 <[email protected]>
Co-authored-by: Bloop <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants