Línea 186... |
Línea 186... |
186 |
'link_request' => '',
|
186 |
'link_request' => '',
|
187 |
'link_accept' => '',
|
187 |
'link_accept' => '',
|
188 |
'link_cancel' => '',
|
188 |
'link_cancel' => '',
|
189 |
'link_reject' =>'',
|
189 |
'link_reject' =>'',
|
190 |
'link_leave' => '',
|
190 |
'link_leave' => '',
|
191 |
'link_timeline' => $this->url()->fromRoute('feed/timeline', ['id' => $company->uuid, 'type' => 'company']),
|
191 |
// 'link_timeline' => $this->url()->fromRoute('feed/timeline', ['id' => $company->uuid, 'type' => 'company']),
|
192 |
'total_followers' => $total_followers,
|
192 |
'total_followers' => $total_followers,
|
193 |
'company_name' => $company->name,
|
193 |
'company_name' => $company->name,
|
194 |
'company_uuid' => $company->uuid,
|
194 |
'company_uuid' => $company->uuid,
|
195 |
'name' => trim($company->name),
|
195 |
'name' => trim($company->name),
|
196 |
'image' => $storage->getCompanyImage($company),
|
196 |
'image' => $storage->getCompanyImage($company),
|
Línea 207... |
Línea 207... |
207 |
'is_follower' => $follower ? 1 : 0,
|
207 |
'is_follower' => $follower ? 1 : 0,
|
208 |
'link_inmail' => $link_inmail,
|
208 |
'link_inmail' => $link_inmail,
|
209 |
'show_contact' => $userBlocked ? 0 : 1,
|
209 |
'show_contact' => $userBlocked ? 0 : 1,
|
210 |
];
|
210 |
];
|
Línea 211... |
Línea 211... |
211 |
|
211 |
|
212 |
$companyUser = $companyUserMapper->fetchOneByCompanyIdAndUserId($company->id, $currentUser->id);
|
212 |
/* $companyUser = $companyUserMapper->fetchOneByCompanyIdAndUserId($company->id, $currentUser->id);
|
213 |
if($companyUser) {
|
213 |
if($companyUser) {
|
214 |
if($companyUser->status == CompanyUser::STATUS_ADMIN_WILL_ADD) {
|
214 |
if($companyUser->status == CompanyUser::STATUS_ADMIN_WILL_ADD) {
|
215 |
$data['link_accept'] = $this->url()->fromRoute('company/accept', ['id' => $company->uuid]);
|
215 |
$data['link_accept'] = $this->url()->fromRoute('company/accept', ['id' => $company->uuid]);
|
216 |
$data['link_reject'] = $this->url()->fromRoute('company/reject', ['id' => $company->uuid]);
|
216 |
$data['link_reject'] = $this->url()->fromRoute('company/reject', ['id' => $company->uuid]);
|
Línea 246... |
Línea 246... |
246 |
$userBlockedMapper = UserBlockedMapper::getInstance($this->adapter);
|
246 |
$userBlockedMapper = UserBlockedMapper::getInstance($this->adapter);
|
247 |
$userBlocked = $userBlockedMapper->fetchOneByUserIdAndBlockedId($currentUser->id, $companyUserOwner->user_id);
|
247 |
$userBlocked = $userBlockedMapper->fetchOneByUserIdAndBlockedId($currentUser->id, $companyUserOwner->user_id);
|
248 |
if(!$userBlocked) {
|
248 |
if(!$userBlocked) {
|
249 |
$data['link_contact'] = $this->url()->fromRoute('inmail/user', ['id' => $companyUserOwner->uuid]);;
|
249 |
$data['link_contact'] = $this->url()->fromRoute('inmail/user', ['id' => $companyUserOwner->uuid]);;
|
250 |
}
|
250 |
}
|
251 |
}
|
251 |
} */
|
Línea 252... |
Línea 252... |
252 |
|
252 |
|
253 |
return new JsonModel([
|
253 |
return new JsonModel([
|
254 |
'success' => true,
|
254 |
'success' => true,
|
255 |
'data' => $data
|
255 |
'data' => $data
|