Browse Source

Update User model

For a banned user, do not display a promotion link.
Visman 4 years ago
parent
commit
48e6ea0b64
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Models/User/Model.php

+ 1 - 0
app/Models/User/Model.php

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