diff --git a/sharedComponents/subscriber-invite/subscriber-invite.component.ts b/sharedComponents/subscriber-invite/subscriber-invite.component.ts
index 9df34b70..625139cf 100644
--- a/sharedComponents/subscriber-invite/subscriber-invite.component.ts
+++ b/sharedComponents/subscriber-invite/subscriber-invite.component.ts
@@ -6,9 +6,10 @@ import {Email} from "../../utils/email/email";
import {Body} from "../../utils/email/body";
import {CommunityService} from "../../connect/community/community.service";
import {Composer} from "../../utils/email/composer";
-import {User} from "../../login/utils/helper.class";
+import {Session, User} from "../../login/utils/helper.class";
import {EmailService} from "../../utils/email/email.service";
import {properties} from "../../../../environments/environment";
+import {CommunityInfo} from "../../connect/community/communityInfo";
declare var UIkit;
@@ -31,10 +32,11 @@ declare var UIkit;
Message *:
-
+
{{body.signature}}
@@ -55,6 +57,7 @@ declare var UIkit;
export class SubscriberInviteComponent implements OnInit, OnDestroy {
@Input()
public user: User;
+ public community: CommunityInfo
public inviteForm: FormGroup;
public email: Email;
public body: Body;
@@ -90,6 +93,7 @@ export class SubscriberInviteComponent implements OnInit, OnDestroy {
message: this.fb.control('', Validators.required)
});
this.subscriptions.push(this.communityService.getCommunityAsObservable().subscribe(community => {
+ this.community = community;
this.inviteForm.get('name').enable();
this.inviteForm.get('name').setValue(this.user.fullname);
this.inviteForm.get('name').disable();
@@ -150,6 +154,10 @@ export class SubscriberInviteComponent implements OnInit, OnDestroy {
}
}
+ get isManager() {
+ return Session.isPortalAdministrator(this.user) && Session.isCurator('community', this.user) && Session.isManager('community', this.community.communityId, this.user);
+ }
+
get valid() {
return this.inviteForm && this.inviteForm.valid;
}