FIX: Do not show endorse button for suspended users (#43)

FIX: Do not show endorse button for suspended users (#43)

diff --git a/assets/javascripts/discourse/components/endorsement-button.js b/assets/javascripts/discourse/components/endorsement-button.js
index 8f28947..b3dd12c 100644
--- a/assets/javascripts/discourse/components/endorsement-button.js
+++ b/assets/javascripts/discourse/components/endorsement-button.js
@@ -16,7 +16,8 @@ export default Component.extend({
     if (
       !this.siteSettings.enable_category_experts ||
       !this.currentUser ||
-      this.currentUser.id === this.user.id
+      this.currentUser.id === this.user.id ||
+      this.user.suspended
     ) {
       return;
     }

GitHub sha: e1cacef967a24c91c3db14ac3eb8b6594b347222

This commit appears in #43 which was approved by CvX. It was merged by markvanlan.