Don't allow even superusers to modify non-modifiable attribs.

This commit is contained in:
Greg Taylor 2009-01-25 03:16:49 +00:00
parent 7ff97599be
commit 848c7da075

View file

@ -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