diff --git a/app/v1/user.go b/app/v1/user.go index f3c6b8e..5feca21 100644 --- a/app/v1/user.go +++ b/app/v1/user.go @@ -199,7 +199,8 @@ LIMIT 1 return Err500 } - if can && show && (b.Name != "" || b.Icon != "") { + can = can && show && common.UserPrivileges(r.Privileges)&common.UserPrivilegeDonor > 0 + if can && (b.Name != "" || b.Icon != "") { r.CustomBadge = &b }