mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Prevent players from mutating entities if they're pac banned (#1246)
* make CanTool check more robust * Fix an HTML injection exploit (#1210) * Improve FixURL * Ensure number * Simplify * Update CONTRIBUTING.md * Prevent players from mutating entities if they're pac banned Co-authored-by: CapsAdmin <eliashogstvedt@gmail.com> Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com> Co-authored-by: Techbot121 <techbot121@gmail.com> Co-authored-by: Redox <mail@redox.to>
This commit is contained in:
parent
754674c927
commit
fe292ceaf5
@ -65,6 +65,8 @@ function emut.MutateEntity(owner, class_name, ent, ...)
|
||||
return
|
||||
end
|
||||
|
||||
if pace.IsBanned(owner) then return end
|
||||
|
||||
if SERVER then
|
||||
if not override_enabled then
|
||||
if owner:IsPlayer() and not emut.registered_mutators[class_name].cvar:GetBool() then
|
||||
|
Loading…
Reference in New Issue
Block a user