Skip to content

Commit aaa88ba

Browse files
authored
Admin group URI
1 parent dee46ea commit aaa88ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfservice/blueprints/recovery.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ def admin():
256256
"""
257257
Allow RTPs to create reset tokens for accounts.
258258
"""
259-
if "rtp" not in flask_session["userinfo"].get("groups"):
260-
flash("Nice try. 😉 " + ', '.join(flask_session["userinfo"].get("groups")))
259+
if "/admins/rtp" not in flask_session["userinfo"].get("groups"):
260+
flash("Nice try. 😉 ")
261261
return redirect("/recovery")
262262

263263
if request.method == "GET":

0 commit comments

Comments
 (0)