[eit] main: do not execute command if not allowed

This commit is contained in:
Fabio Erculiani
2013-03-30 11:51:28 +00:00
parent 510605a687
commit cdeedfe483

View File

@@ -110,8 +110,8 @@ def main():
allowed = False
func, func_args = cmd_obj.parse()
exit_st = func(*func_args)
if allowed:
exit_st = func(*func_args)
raise SystemExit(exit_st)
else:
print_error(_("superuser access required"))