Merge "Pkg definition page should show owned pkgs for non-admins"

This commit is contained in:
Jenkins 2014-04-29 10:46:41 +00:00 committed by Gerrit Code Review
commit c45abb7952
1 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,10 @@ class PackageDefinitionsView(tables.DataTableView):
def get_data(self):
pkgs = []
with api.handled_exceptions(self.request):
pkgs = api.muranoclient(self.request).packages.list()
pkgs = api.muranoclient(self.request).packages.filter(
include_disabled=True,
owned=True
)
return pkgs