From 325b61f2124b079eba8626d216a2e93e862536e6 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 31 Mar 2014 11:34:54 +0100 Subject: [PATCH] Add clarifying comment to the change_user_perm line --- wagtail/wagtailusers/views/users.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wagtail/wagtailusers/views/users.py b/wagtail/wagtailusers/views/users.py index 57140b906..4c17e4489 100644 --- a/wagtail/wagtailusers/views/users.py +++ b/wagtail/wagtailusers/views/users.py @@ -13,6 +13,9 @@ from wagtail.wagtailcore.compat import AUTH_USER_APP_LABEL, AUTH_USER_MODEL_NAME User = get_user_model() +# Typically we would check the permission 'auth.change_user' for user +# management actions, but this may vary according to the AUTH_USER_MODEL +# setting change_user_perm = "{0}.change_{1}".format(AUTH_USER_APP_LABEL, AUTH_USER_MODEL_NAME.lower())