Ticket #9036: sites.diff
File sites.diff, 1001 bytes (added by , 16 years ago) |
---|
-
sites.py
340 340 if app_label == model._meta.app_label: 341 341 if has_module_perms: 342 342 perms = { 343 'add': user.has_perm("%s.%s" % (app_label, model._meta.get_add_permission())),344 'change': user.has_perm("%s.%s" % (app_label, model._meta.get_change_permission())),345 'delete': user.has_perm("%s.%s" % (app_label, model._meta.get_delete_permission())),343 'add': model_admin.has_add_permission(request), 344 'change': model_admin.has_change_permission(request), 345 'delete': model_admin.has_delete_permission(request), 346 346 } 347 347 # Check whether user has any perm for this module. 348 348 # If so, add the module to the model_list.