diff options
author | Mats Sjöberg <mats@sjoberg.fi> | 2013-05-21 22:42:41 +0300 |
---|---|---|
committer | Mats Sjöberg <mats@sjoberg.fi> | 2013-05-21 22:42:41 +0300 |
commit | 7da90d56d14d47e9d5b124a42a5d9e1101a603e0 (patch) | |
tree | d61c67d3071a67fbf84f4c46c5d15b0029ab4bb1 /mediagoblin/plugins/piwigo/views.py | |
parent | 415011060751906aa779fe1849d9d5e93048a5f7 (diff) | |
download | mediagoblin-7da90d56d14d47e9d5b124a42a5d9e1101a603e0.tar.lz mediagoblin-7da90d56d14d47e9d5b124a42a5d9e1101a603e0.tar.xz mediagoblin-7da90d56d14d47e9d5b124a42a5d9e1101a603e0.zip |
Piwigo: return collections list only to logged in users.
Diffstat (limited to 'mediagoblin/plugins/piwigo/views.py')
-rw-r--r-- | mediagoblin/plugins/piwigo/views.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mediagoblin/plugins/piwigo/views.py b/mediagoblin/plugins/piwigo/views.py index c348fd54..250bf758 100644 --- 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( |