mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-05 23:11:52 +00:00
Fixes ticket security issue (#4398)
Turns out, ticket panels are updated for everyone if anyone presses specific buttons. At which point, the usr may as well be an admin, and this will then give access to all the tickets for everyone. So i fix it.
This commit is contained in:
@@ -106,7 +106,7 @@ proc/get_open_ticket_by_ckey(var/owner)
|
||||
|
||||
var/list/dat = list()
|
||||
|
||||
var/valid_holder = check_rights(R_MOD|R_ADMIN, FALSE)
|
||||
var/valid_holder = check_rights(R_MOD|R_ADMIN, FALSE, ticket_panel_window.user)
|
||||
|
||||
var/list/ticket_dat = list()
|
||||
for(var/id = tickets.len, id >= 1, id--)
|
||||
|
||||
Reference in New Issue
Block a user