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 permissions on arm processors and prepare for permissions change #386

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

truemedian
Copy link
Contributor

Works around a bug in luajit that seems to happen when passing a
number to bit.bor that is larger than 2^31-1

Additionally adds a few missing enumerations so that enableAll and
disableAll work as expected.

Fixes #384

Also forces permissions to be sent as a string, in preparation for
when they'll no longer be allowed to be sent as a number.

works around a bug in luajit that seems to happen when passing a
number to `bit.bor` that is larger than 2^31-1

Additionally adds a few missing enumerations so that enableAll and
disableAll work as expected.

Fixes SinisterRectus#384
@MeteorTheLizard
Copy link

I've been using this fix for a few weeks now and it has seen a lot of use. So far there haven't been any problems with it, though through testing I found out that when there is an enum missing in libs/enums.lua (for example when discord decides to add a new one on their end), then the permission management breaks again.

@SinisterRectus
Copy link
Owner

It looks like this changes the enum type from number to LJ int. Not ideal, but is there no better way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission management not functioning correctly
3 participants