Update User model

For a banned user, do not display a promotion link.
This commit is contained in:
Visman 2021-02-16 17:46:00 +07:00
parent 2286f96bbb
commit 48e6ea0b64

View file

@ -344,6 +344,7 @@ class Model extends DataModel
)
&& $this->id !== $post->user->id //????
&& 0 < $post->user->g_promote_min_posts * $post->user->g_promote_next_group
&& ! $post->user->isBanByName
) {
return $this->c->Router->link(
'AdminUserPromote',