﻿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
25142	Add PermissionRequiredMixin.has_permission() to allow customization	Akis Kesoglou	Akis Kesoglou	"Extending from PermissionRequiredMixin to implement a mixin for checking for *object* permissions means that you can't call super in .dispatch because PermissionRequiredMixin will do another check for model-level permissions.

I propose to delegate the check for permissions in PermissionRequiredMixin.dispatch to an instance method. This way, we are able to provide a hook for code to check for object permissions without having to re-implement the whole class.

PR coming shortly.

----

I have went ahead and generalised the ticket and patch to refactor all access mixins."	Cleanup/optimization	closed	contrib.auth	dev	Normal	fixed		akiskesoglou@…	Accepted	1	0	0	0	1	0
