﻿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
25847	"Make User.is_authenticated() and User.is_anonymous() ""callable properties"""	Stavros Korokithakis	Jeremy Lainé	"There's an inconsistency between `is_authenticated` and `is_superuser`. The former is a method and the latter is a property, leading many people to do:


{{{
if request.user.is_authenticated:
    return sensitive_information
}}}

which is, of course, always executed.

I propose that is_authenticated be turned into a property, while it can also be a callable, for backwards-compatibility."	New feature	closed	contrib.auth	dev	Normal	fixed	1.10	zachborboa@… dheeru.rathor14@… Florian Apolloner	Accepted	1	0	0	0	0	0
