File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,17 +246,10 @@ def listPackagesAPI(self,data=None):
246246 """
247247 try :
248248 adminUser = data ['adminUser' ]
249- adminPass = data ['adminPass' ]
250249 admin = Administrator .objects .get (userName = adminUser )
251- if hashPassword .check_password (admin .password , adminPass ):
252- currentACL = ACLManager .loadedACL (admin .id )
253- packageList = ACLManager .loadPackages (admin .id , currentACL )
254- return HttpResponse (json .dumps (packageList ))
255- else :
256- data_ret = {"status" : 0 ,
257- 'error_message' : "Could not authorize access to API" }
258- json_data = json .dumps (data_ret )
259- return HttpResponse (json_data )
250+ currentACL = ACLManager .loadedACL (admin .id )
251+ packageList = ACLManager .loadPackages (admin .id , currentACL )
252+ return HttpResponse (json .dumps (packageList );
260253 except BaseException as msg :
261254 data_ret = {'status' : 0 , 'error_message' : str (msg )}
262255 json_data = json .dumps (data_ret )
You can’t perform that action at this time.
0 commit comments