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 permission check #2

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

Conversation

zWyzzzzz
Copy link

No description provided.

@ChrisLenga
Copy link
Contributor

@ItsANoBrainer

Confirmed to be working on my end. Thanks @zWyzzzzz

Copy link
Owner

@ItsANoBrainer ItsANoBrainer left a comment

Choose a reason for hiding this comment

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

I would like to see the permission level check being done inside OpenMenu function (since its called multiple places), and ToggleDeletionLaser. Seems kind of odd you need permission to create one, but not delete it. If that's not ideal, then a separate config option to disable the permission on both would be an alternative.

client/client.lua Outdated Show resolved Hide resolved
client/client.lua Outdated Show resolved Hide resolved
client/client.lua Outdated Show resolved Hide resolved
client/client.lua Show resolved Hide resolved
client/client.lua Outdated Show resolved Hide resolved
client/client.lua Outdated Show resolved Hide resolved
Comment on lines +108 to +110
QBCore.Functions.TriggerCallback('qb-scenes:server:GetPermissions', function(permission)
permissionLevel = permission
end)
Copy link
Owner

Choose a reason for hiding this comment

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

Since we're using this more than once, we should move this to a function that can be called.

zWyzzzzz and others added 6 commits March 20, 2022 21:57
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
@LYRYCAL
Copy link

LYRYCAL commented Jun 3, 2022

idk, i try this one but all player still can use scene menu.

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.

4 participants