Give default permissions to spawn/edit prototypes.

Resolves #1687.
This commit is contained in:
Griatch 2018-10-26 20:07:05 +02:00
parent 06588f6695
commit 0a5701d627
2 changed files with 7 additions and 5 deletions

View file

@ -3091,7 +3091,8 @@ class CmdSpawn(COMMAND_DEFAULT_CLASS):
return
# we have a prototype, check access
prototype = prototypes[0]
if not caller.locks.check_lockstring(caller, prototype.get('prototype_locks', ''), access_type='spawn'):
if not caller.locks.check_lockstring(
caller, prototype.get('prototype_locks', ''), access_type='spawn', default=True):
caller.msg("You don't have access to use this prototype.")
return