Piwigo: return collections list only to logged in users.
This commit is contained in:
parent
4150110607
commit
7da90d56d1
@ -87,12 +87,13 @@ def pwg_categories_getList(request):
|
|||||||
'uppercats': "-29711",
|
'uppercats': "-29711",
|
||||||
'name': "All my images"}]
|
'name': "All my images"}]
|
||||||
|
|
||||||
for c in collections:
|
if request.user:
|
||||||
catlist.append({'id': c.id,
|
for c in collections:
|
||||||
'uppercats': str(c.id),
|
catlist.append({'id': c.id,
|
||||||
'name': c.title,
|
'uppercats': str(c.id),
|
||||||
'comment': c.description
|
'name': c.title,
|
||||||
})
|
'comment': c.description
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'categories': PwgNamedArray(
|
'categories': PwgNamedArray(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user