diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/views.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 64107f159..2c9bbb425 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -869,7 +869,11 @@ def get_item(model, func_name, default_name, extra_request_keys=[],                  query |= Q(**altor_dct)          if own: -            query = query & model.get_query_owns(request.user) +            q = models.IshtarUser.objects.filter(user_ptr=request.user) +            if q.count(): +                query = query & model.get_query_owns(ishtaruser.all()[0]) +            else: +                return HttpResponse(EMPTY, content_type='text/plain')          for and_req in and_reqs:              query = query & and_req | 
