Skip to content

Commit

Permalink
Adds access requirement to Virology
Browse files Browse the repository at this point in the history
The code for the new door buttons didn't check for access.
  • Loading branch information
Ikarrus committed Jul 14, 2015
1 parent f08d4f4 commit a11105d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/machinery/embedded_controller/access_controller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
return
if(busy)
return
if(!allowed(user))
user << "<span class='warning'>Access denied.</span>"
return
if(controller && !controller.busy && door)
if(controller.stat & NOPOWER)
return
Expand Down Expand Up @@ -114,6 +117,9 @@
return
if(busy)
return
if(!allowed(usr))
usr << "<span class='warning'>Access denied.</span>"
return
switch(href_list["command"])
if("close_exterior")
onlyClose(exteriorAirlock)
Expand Down
37 changes: 37 additions & 0 deletions html/changelogs/Ikarrus-ayy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# spellcheck (typo fixes)
# experiment
# tgs (TG-ported fixes?)
#################################

# Your name.
author: Ikarrus

# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True

# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Virology is no longer all-access."

0 comments on commit a11105d

Please sign in to comment.