Piwigo: return collections list only to logged in users.

This commit is contained in:
Mats Sjöberg 2013-05-21 22:42:41 +03:00
parent 4150110607
commit 7da90d56d1

View File

@ -87,12 +87,13 @@ def pwg_categories_getList(request):
'uppercats': "-29711",
'name': "All my images"}]
for c in collections:
catlist.append({'id': c.id,
'uppercats': str(c.id),
'name': c.title,
'comment': c.description
})
if request.user:
for c in collections:
catlist.append({'id': c.id,
'uppercats': str(c.id),
'name': c.title,
'comment': c.description
})
return {
'categories': PwgNamedArray(