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:]
|
attrib_value = eq_args[1][splicenum:]
|
||||||
|
|
||||||
# In global_defines.py, see NOSET_ATTRIBS for protected attribute names.
|
# 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.")
|
source_object.emit_to("You can't modify that attribute.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue