mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
[per-object-permissions] Fixed missing parenthesis
git-svn-id: http://code.djangoproject.com/svn/django/branches/per-object-permissions@3677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
64be2e2881
commit
325762a1e9
@ -690,7 +690,7 @@ class ChangeList(object):
|
||||
return order_field, order_type
|
||||
|
||||
def get_query_set(self):
|
||||
if (not self.opts.admin.show_all_rows) and self.opts.row_level_permissions and (not self.user.has_perm(self.opts.app_label + "."+self.opts.get_change_permission()):
|
||||
if (not self.opts.admin.show_all_rows) and self.opts.row_level_permissions and (not self.user.has_perm(self.opts.app_label + "."+self.opts.get_change_permission())):
|
||||
from django.contrib.auth.models import RowLevelPermission
|
||||
qs = self.manager.filter(id__in=RowLevelPermission.objects.get_model_list(self.user,
|
||||
self.model,
|
||||
|
Loading…
x
Reference in New Issue
Block a user