diff --git a/video2commons/frontend/app.py b/video2commons/frontend/app.py index 6e7d398..c2ebfce 100644 --- a/video2commons/frontend/app.py +++ b/video2commons/frontend/app.py @@ -240,14 +240,17 @@ def logincallback(): is_contributor = identify["editcount"] >= 50 is_maintainer = is_sudoer(identify["username"]) is_autoconfirmed = "autoconfirmed" in identify["rights"] + is_confirmed = "confirmed" in identify["rights"] - # Only allow autoconfirmed users either with at least 50 edits or - # maintainer status to use this tool. - if not (is_autoconfirmed and (is_contributor or is_maintainer)): + # Only allow autoconfirmed users either with at least 50 edits, or + # confirmed users, or maintainer status to use this tool. + if not ((is_autoconfirmed and (is_contributor or is_maintainer)) or is_confirmed): return render_template( "error.min.html", - message="You must be an autoconfirmed Commons user " - "with at least 50 edits to use this tool.", + message = ("You do not meet the requirements. To use this tool, please " + '' + "apply to be a confirmed user, clearly explaining why you need to use video2commons." + ), loggedin=True, username=identify["username"], )