| Línea 80... |
Línea 80... |
| 80 |
|
80 |
|
| 81 |
|
81 |
|
| 82 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
82 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
| 83 |
$currentUser = $currentUserPlugin->getUser();
|
83 |
$currentUser = $currentUserPlugin->getUser();
|
| 84 |
$currentCompany = $currentUserPlugin->getCompany();
|
84 |
$currentCompany = $currentUserPlugin->getCompany();
|
| Línea 85... |
Línea 85... |
| 85 |
$group_uuid = $this->params()->fromRoute('group_uuid');
|
85 |
$group_uuid = $this->params()->fromRoute('group_id');
|
| 86 |
$category_uuid = $this->params()->fromRoute('category_uuid');
|
86 |
$category_uuid = $this->params()->fromRoute('category_id');
|
| Línea 236... |
Línea 236... |
| 236 |
'user_url' => str_replace('[uuid]', $user->uuid, $user_profile_url),
|
236 |
'user_url' => str_replace('[uuid]', $user->uuid, $user_profile_url),
|
| 237 |
'user_image' => $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image]),
|
237 |
'user_image' => $this->url()->fromRoute('storage', ['code' => $user->uuid, 'type' => 'user', 'filename' => $user->image]),
|
| 238 |
],
|
238 |
],
|
| 239 |
'added_on'=> $dt->format('d/m/Y'),
|
239 |
'added_on'=> $dt->format('d/m/Y'),
|
| 240 |
'actions' => [
|
240 |
'actions' => [
|
| 241 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/articles/edit', ['group_uuid' => $group_uuid,'category_uuid' => $category_uuid, 'article_uuid' => $record->uuid]) : '',
|
241 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/articles/edit', ['group_id' => $group_uuid,'category_id' => $category_uuid, 'article_id' => $record->uuid]) : '',
|
| 242 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/articles/delete', ['group_uuid' => $group_uuid,'category_uuid' => $category_uuid, 'article_uuid' => $record->uuid]) : '',
|
242 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/articles/delete', ['group_id' => $group_uuid,'category_id' => $category_uuid, 'article_id' => $record->uuid]) : '',
|
| 243 |
'link_view' => $allowView ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/articles/view', ['group_uuid' => $group_uuid,'category_uuid' => $category_uuid, 'article_uuid' => $record->uuid]) : '',
|
243 |
'link_view' => $allowView ? $this->url()->fromRoute('high-performance-teams/groups/view/foro/categories/articles/view', ['group_id' => $group_uuid,'category_id' => $category_uuid, 'article_id' => $record->uuid]) : '',
|
| 244 |
]
|
244 |
]
|
| Línea 245... |
Línea 245... |
| 245 |
|
245 |
|
| 246 |
];
|
246 |
];
|
| 247 |
if($record->user_id!=$currentUser->id){
|
247 |
if($record->user_id!=$currentUser->id){
|
| Línea 288... |
Línea 288... |
| 288 |
|
288 |
|
| 289 |
|
289 |
|
| 290 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
290 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
| 291 |
$currentUser = $currentUserPlugin->getUser();
|
291 |
$currentUser = $currentUserPlugin->getUser();
|
| 292 |
$currentCompany = $currentUserPlugin->getCompany();
|
292 |
$currentCompany = $currentUserPlugin->getCompany();
|
| Línea 293... |
Línea 293... |
| 293 |
$group_uuid = $this->params()->fromRoute('group_uuid');
|
293 |
$group_uuid = $this->params()->fromRoute('group_id');
|
| 294 |
$category_uuid = $this->params()->fromRoute('category_uuid');
|
294 |
$category_uuid = $this->params()->fromRoute('category_id');
|
| Línea 440... |
Línea 440... |
| 440 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
440 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
| 441 |
$currentUser = $currentUserPlugin->getUser();
|
441 |
$currentUser = $currentUserPlugin->getUser();
|
| 442 |
$currentCompany = $currentUserPlugin->getCompany();
|
442 |
$currentCompany = $currentUserPlugin->getCompany();
|
| 443 |
$request = $this->getRequest();
|
443 |
$request = $this->getRequest();
|
| Línea 444... |
Línea 444... |
| 444 |
|
444 |
|
| 445 |
$group_uuid = $this->params()->fromRoute('group_uuid');
|
445 |
$group_uuid = $this->params()->fromRoute('group_id');
|
| Línea 446... |
Línea 446... |
| 446 |
$category_uuid = $this->params()->fromRoute('category_uuid');
|
446 |
$category_uuid = $this->params()->fromRoute('category_id');
|
| Línea 447... |
Línea 447... |
| 447 |
|
447 |
|
| 448 |
$article_uuid = $this->params()->fromRoute('article_uuid');
|
448 |
$article_uuid = $this->params()->fromRoute('article_id');
|
| 449 |
|
449 |
|
| 450 |
if(!$group_uuid) {
|
450 |
if(!$group_uuid) {
|
| Línea 594... |
Línea 594... |
| 594 |
public function deleteAction()
|
594 |
public function deleteAction()
|
| 595 |
{
|
595 |
{
|
| 596 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
596 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
| 597 |
$currentUser = $currentUserPlugin->getUser();
|
597 |
$currentUser = $currentUserPlugin->getUser();
|
| 598 |
$currentCompany = $currentUserPlugin->getCompany();
|
598 |
$currentCompany = $currentUserPlugin->getCompany();
|
| 599 |
$group_uuid = $this->params()->fromRoute('group_uuid');
|
599 |
$group_uuid = $this->params()->fromRoute('group_id');
|
| Línea 600... |
Línea 600... |
| 600 |
|
600 |
|
| Línea 601... |
Línea 601... |
| 601 |
$request = $this->getRequest();
|
601 |
$request = $this->getRequest();
|
| 602 |
|
602 |
|
| Línea 649... |
Línea 649... |
| 649 |
|
649 |
|
| Línea 650... |
Línea 650... |
| 650 |
|
650 |
|
| Línea 651... |
Línea 651... |
| 651 |
if($request->isPost()) {
|
651 |
if($request->isPost()) {
|
| 652 |
|
652 |
|
| 653 |
|
653 |
|
| 654 |
$article_uuid = $this->params()->fromRoute('article_uuid');
|
654 |
$article_uuid = $this->params()->fromRoute('article_id');
|