From ce899cfe4dc3fd89b546d50e48859a659f8bb7b9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 8 Aug 2016 23:47:45 +0300 Subject: [PATCH] Permission fix for saving invoice --- app/Models/Contact.php | 8 ++++++++ app/Models/Invitation.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/app/Models/Contact.php b/app/Models/Contact.php index fbac37117e13..feece59de005 100644 --- a/app/Models/Contact.php +++ b/app/Models/Contact.php @@ -18,6 +18,14 @@ class Contact extends EntityModel implements AuthenticatableContract, CanResetPa */ protected $dates = ['deleted_at']; + /** + * @return mixed + */ + public function getEntityType() + { + return ENTITY_CONTACT; + } + /** * @var array */ diff --git a/app/Models/Invitation.php b/app/Models/Invitation.php index d2d4abb026fd..a86cc721735f 100644 --- a/app/Models/Invitation.php +++ b/app/Models/Invitation.php @@ -15,6 +15,14 @@ class Invitation extends EntityModel */ protected $dates = ['deleted_at']; + /** + * @return mixed + */ + public function getEntityType() + { + return ENTITY_INVITATION; + } + /** * @return mixed */