manoj-makkuboy / vikuit

Automatically exported from code.google.com/p/vikuit
0 stars 0 forks source link

Image gallery throws an error when the user is not Admin #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Throws an error were you are looking the image gallery as a user.

Release 0.7 on Google's Appengine.

What steps will reproduce the problem?
1. Login as admin
2. Edit one article
3. Look at image gallery. All OK.
4. Login as user eg. Test1
5. Edit article
6. Look at image gallery. Throws:

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 515, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/vikuit/0-7.349298315935832661/handlers/BaseHandler.py", line 47, in get
    self.pre_execute()
  File "/base/data/home/apps/vikuit/0-7.349298315935832661/handlers/BaseHandler.py", line 60, in pre_execute
    self.execute()
  File "/base/data/home/apps/vikuit/0-7.349298315935832661/handlers/editor/ImageBrowser.py", line 40, in execute
    images = model.Image.gql('WHERE author_nickname=:1', self.request.user)
  File "/base/python_runtime/python_lib/versions/1/webob/__init__.py", line 500, in __getattr__
    raise AttributeError(attr)
AttributeError: user

Original issue reported on code.google.com by jcarra...@gmail.com on 28 Mar 2011 at 11:09

GoogleCodeExporter commented 8 years ago

Original comment by joseblan...@gmail.com on 29 Mar 2011 at 7:01