forked from rDrama/rDrama
1
0
Fork 0

Merge branch 'frost' of https://github.com/Aevann1/Drama into frost

master
Aevann1 2022-06-17 20:30:08 +02:00
commit 4bae98dab0
1 changed files with 1 additions and 1 deletions

View File

@ -914,7 +914,7 @@ def u_username(username, v=None):
if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": f"That username is reserved for: {u.reserved}"}
return render_template("userpage_reserved.html", u=u, v=v)
if u.shadowbanned and not (v and v.admin_level >= 2):
if u.shadowbanned and not (v and v.admin_level >= 2) and not (v and v.id == u.id):
abort(404)
if v and v.id not in (u.id,DAD_ID) and (u.patron or u.admin_level > 1):