mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 12:37:16 +02:00
Don't allow even superusers to modify non-modifiable attribs.
This commit is contained in:
parent
7ff97599be
commit
848c7da075
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ def cmd_set(command):
|
|||
attrib_value = eq_args[1][splicenum:]
|
||||
|
||||
# In global_defines.py, see NOSET_ATTRIBS for protected attribute names.
|
||||
if not Attribute.objects.is_modifiable_attrib(attrib_name) and not source_object.is_superuser():
|
||||
if not Attribute.objects.is_modifiable_attrib(attrib_name):
|
||||
source_object.emit_to("You can't modify that attribute.")
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue