Commit 8f2489df authored by Ryan Herbert's avatar Ryan Herbert
Browse files

config.py access denied edit

Fixed a bug where permission checking was inverted when submitting a config edit form
parent 3e9637c8
......@@ -76,7 +76,7 @@ def edit():
def edit_form():
error =""
if (auth.can_modify_config(request.vars['config_id'])):
if (not auth.can_modify_config(request.vars['config_id'])):
error += "ACCESS_DENIED"
required_fields = ['id', 'config_name', 'config_command', 'config_fuse_command', 'config_program']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment