﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5447	has_{add,change,delete}_permission not working correctly	anonymous	anonymous	"Using ""def has_add_permission(*args):return False"" in the model options only raises a permission denied when trying to add an object but it doesn't hide the ""add object"" button in change_list.html and index.html (and they seem to use different ways to check if the object has the add permission: change_list.html uses ""{% if has_add_permission %}"" while index.html uses {% if model.perms.add %})
This also applies to ""has_change_permission"" and ""has_delete_permission"".
Moreover I think that when has_change_permission returns False, it should't allow to modify (save modified) objects, while currently it doesn't allow to see the list of objects.
"		closed	contrib.admin	newforms-admin		fixed		django@…	Accepted	0	0	0	0	0	0
