mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
[MIRROR] Fixes #62713, exploit allowing players to purchase role restricted uplink items [MDB IGNORE] (#9407)
* Update uplink.dm (#62735) * Fixes #62713, exploit allowing players to purchase role restricted uplink items Co-authored-by: CocaColaTastesGood <47264839+CocaColaTastesGood@users.noreply.github.com>
This commit is contained in:
co-authored by
CocaColaTastesGood
parent
c0956ec4cc
commit
a0261297c3
@@ -241,6 +241,8 @@
|
||||
return
|
||||
if (!user || user.incapacitated())
|
||||
return
|
||||
if(!(user.mind.assigned_role.title in U.restricted_roles))
|
||||
return
|
||||
|
||||
if(telecrystals < U.cost || U.limited_stock == 0)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user