﻿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
3697	ability to mark entire directory (and subdirs) as login_required/is_staff	Simon G. <dev@…>	nobody	"It would be very nice to have the ability to mark an entire directory (URL Path) as login_required/etc. For example, everything below /admin/ should be checked with is_staff.

There are a number of reasons for this: 

1) it's tidier and more DRY-ish to not have decorators on every single view.

2) it's safer - by decorating a directory rather than every view, you're less likely to forget one.

3) it's a common system - generally everything under /admin/ needs a staff member, everything in /user/ needs a logged in user, etc.

I'm not sure how this could be done - possibly by adding a parameter to a URL conf (although I don't know if that's the ""right"" place), or by setting a flag in a views file."		closed	Core (Other)	dev		wontfix	pie-in-the-sky-feature-requests	dev@…	Design decision needed	0	0	0	0	0	0
