projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4150110
)
Piwigo: return collections list only to logged in users.
author
Mats Sjöberg
<mats@sjoberg.fi>
Tue, 21 May 2013 19:42:41 +0000
(22:42 +0300)
committer
Mats Sjöberg
<mats@sjoberg.fi>
Tue, 21 May 2013 19:42:41 +0000
(22:42 +0300)
mediagoblin/plugins/piwigo/views.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/plugins/piwigo/views.py
b/mediagoblin/plugins/piwigo/views.py
index c348fd54be21a2800e27f5aa8a2b4ad87a1c5664..250bf758458b0117223141d470300fa5e2440862 100644
(file)
--- a/
mediagoblin/plugins/piwigo/views.py
+++ b/
mediagoblin/plugins/piwigo/views.py
@@
-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(