Fix auth functions

This commit is contained in:
Sergey Motornyuk 2022-05-08 02:03:28 +03:00
parent 885a05fea4
commit ae59b35121
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ def get_auth():
def package_stats_show(context, data_dict):
return {"success": is_authorized("package_show", context, data_dict)}
return is_authorized("package_show", context, data_dict)
def resource_stats_show(context, data_dict):
return {"success": is_authorized("resource_show", context, data_dict)}
return is_authorized("resource_show", context, data_dict)