Show custom badge only if user is currently a donor
This commit is contained in:
parent
48cef26ccd
commit
c54c1565ca
|
@ -199,7 +199,8 @@ LIMIT 1
|
||||||
return Err500
|
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
|
r.CustomBadge = &b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user