diff --git a/ietf/utils/response.py b/ietf/utils/response.py
new file mode 100644
index 000000000..e6b1ed2a2
--- /dev/null
+++ b/ietf/utils/response.py
@@ -0,0 +1,10 @@
+# Copyright The IETF Trust 2020, All Rights Reserved
+# -*- coding: utf-8 -*-
+
+from django.core.exceptions import PermissionDenied
+from django.utils.safestring import mark_safe
+
+def permission_denied(request, msg):
+ "A wrapper around the PermissionDenied exception"
+ msg += "
You can Log in if you have that role but aren't logged in." % request.path
+ raise PermissionDenied(mark_safe(msg))