File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -246,17 +246,10 @@ def listPackagesAPI(self,data=None):
246
246
"""
247
247
try :
248
248
adminUser = data ['adminUser' ]
249
- adminPass = data ['adminPass' ]
250
249
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 );
260
253
except BaseException as msg :
261
254
data_ret = {'status' : 0 , 'error_message' : str (msg )}
262
255
json_data = json .dumps (data_ret )
You can’t perform that action at this time.
0 commit comments