FIX: Do not raise an error for anon user on group page

FIX: Do not raise an error for anon user on group page

diff --git a/assets/javascripts/discourse/components/group-assignments-menu-item.js.es6 b/assets/javascripts/discourse/components/group-assignments-menu-item.js.es6
index 0c46d45..b6c2801 100644
--- a/assets/javascripts/discourse/components/group-assignments-menu-item.js.es6
+++ b/assets/javascripts/discourse/components/group-assignments-menu-item.js.es6
@@ -3,6 +3,6 @@ export default Ember.Component.extend({
 
   init() {
     this._super(...arguments);
-    this.set("canAssign", this.currentUser.can_assign);
+    this.set("canAssign", this.currentUser && this.currentUser.can_assign);
   }
 });

GitHub sha: 48cda7bb