Ticket #9036: 9036-index_perms_discrepancy.diff
File 9036-index_perms_discrepancy.diff, 954 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/sites.py
294 294 295 295 if has_module_perms: 296 296 perms = { 297 'add': model_admin.has_add_permission(request),298 'change': model_admin.has_change_permission(request),299 'delete': model_admin.has_delete_permission(request),297 'add': user.has_perm("%s.%s" % (app_label, model._meta.get_add_permission())), 298 'change': user.has_perm("%s.%s" % (app_label, model._meta.get_change_permission())), 299 'delete': user.has_perm("%s.%s" % (app_label, model._meta.get_delete_permission())), 300 300 } 301 301 302 302 # Check whether user has any perm for this module.