From 848c7da075130be79784c5da40c44c622fa5b25f Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Sun, 25 Jan 2009 03:16:49 +0000 Subject: [PATCH] Don't allow even superusers to modify non-modifiable attribs. --- src/commands/objmanip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/objmanip.py b/src/commands/objmanip.py index 41aa77c2a5..57381004d4 100644 --- a/src/commands/objmanip.py +++ b/src/commands/objmanip.py @@ -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