fixed problem with ENABLED/DISABLED, issue 1689
This commit is contained in:
@@ -494,6 +494,7 @@ def enable():
|
||||
if is_gae:
|
||||
return SPAN(T('Not supported'), _style='color:yellow')
|
||||
elif os.path.exists(filename):
|
||||
os.unlink(filename)
|
||||
return SPAN(T('Disable'), _style='color:green')
|
||||
else:
|
||||
safe_open(filename, 'wb').write('disabled: True\ntime-disabled: %s' % request.now)
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
{{pass}}
|
||||
</ul>
|
||||
</div>
|
||||
{{=button_enable(URL('enable',args=a), a)}}
|
||||
{{=button_enable(URL('enable',args=a), a) if a!='admin' else ''}}
|
||||
</td>
|
||||
</tr>
|
||||
{{pass}}
|
||||
|
||||
Reference in New Issue
Block a user