Skip to content

Commit

Permalink
fixes a tgui cardmod issue (#5678)
Browse files Browse the repository at this point in the history
i fucked up, this results in dupes.
  • Loading branch information
silicons authored Jul 8, 2023
1 parent 6498a8e commit 8830fdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/tgui/modules/general/cardmod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,13 @@
var/list/allowed = SSjob.editable_access_ids_by_id(id)
if(isnull(allowed))
continue
var/list/got = allowed & accesses
var/list/got = allowed & left
if(!length(got))
continue
left -= got
. += got
if(!length(left))
break

/datum/tgui_module/card_mod/standard/auth_account_edit(mob/user, obj/item/card/id/editing, obj/item/card/id/authing, old_number, new_number)
return (ACCESS_COMMAND_BANKING in authing?.access)
Expand Down

0 comments on commit 8830fdd

Please sign in to comment.