Update User model
For a banned user, do not display a promotion link.
This commit is contained in:
parent
2286f96bbb
commit
48e6ea0b64
1 changed files with 1 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue