From 187bb4c3140fd0820a92d61eeda004b52403a955 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Tue, 11 Nov 2008 22:23:05 +0000 Subject: [PATCH] Syntax error in permission checking for genicw. --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index 0eac3e0..41ab0cd 100644 --- a/api.py +++ b/api.py @@ -66,7 +66,7 @@ class APIRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): caller_name = pwd.getpwuid(xid)[0] # Special case the genicw if method_name == "AdminTicket": - if caller_name == 'PLC_SLICE_PREFIX'+"_genicw": + if caller_name == PLC_SLICE_PREFIX+"_genicw": try: result = method(*args) except Exception, err: raise xmlrpclib.Fault(104, 'Error in call: %s' %err) else: -- 2.43.0