Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Add permissive mode#127

Merged
Trey2k merged 1 commit into
mainfrom
dev/permissions
Jun 18, 2023
Merged

Add permissive mode#127
Trey2k merged 1 commit into
mainfrom
dev/permissions

Conversation

@Trey2k
Copy link
Copy Markdown
Member

@Trey2k Trey2k commented Jun 17, 2023

Currently if a object does not define an __index or a lua_fields method all fields/methods will be allowed. And if it does its treated as a whitelist.

This PR makes it so if its not defined by default no fields/methods will be allowed. And adds a permissive mode which when enabled will allow all fields/methods by default and treat lua_fields as a blacklist instead.

__newindex and __index still take priority over all though.

@Trey2k Trey2k force-pushed the dev/permissions branch from cf9603d to 6024f47 Compare June 17, 2023 22:18
@Trey2k Trey2k merged commit 5a43565 into main Jun 18, 2023
@Trey2k Trey2k deleted the dev/permissions branch June 18, 2023 00:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant