Merge pull request #7049 from Novacat/nova-accessory

Overmap Consoles now check access
This commit is contained in:
Atermonera
2020-05-03 00:12:45 -07:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -100,5 +100,8 @@
/obj/machinery/computer/ship/attack_hand(mob/user)
if((. = ..()))
return
if(!allowed(user))
to_chat(user, "<span class='warning'>Access Denied.</span>")
return 1
if(CanUseTopic(user, DefaultTopicState()) > STATUS_CLOSE)
return interface_interact(user)