Proyectos de Subversion LeadersLinked - Services

Rev

Rev 1 | Rev 111 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 60
Línea 138... Línea 138...
138
                {
138
                {
Línea 139... Línea 139...
139
                    
139
                    
140
                    $item = [
140
                    $item = [
141
                        'name' => $record['name'],
141
                        'name' => $record['name'],
142
                        'privacy' => $values[$record['privacy']],
142
                        'privacy' => $values[$record['privacy']],
143
                        'image' => $this->url()->fromRoute('storage', ['type' => 'group', 'code' => $record['uuid'], 'filename' => $record['image'] ]),
143
                        'image' => $this->url()->fromRoute('storage', ['type' => 'group', 'code' => $record['uuid'], 'filename' => $record['image'] ],['force_canonical' => true]),
144
                        'link_view' => $allowView ? $this->url()->fromRoute('group/view', ['id' => $record['uuid'] ])  : '',
144
                        'link_view' => $allowView ? $this->url()->fromRoute('group/view', ['id' => $record['uuid'] ])  : '',
145
                        'link_edit' => $allowEdit ? $this->url()->fromRoute('group/my-groups/edit', ['id' => $record['uuid'] ])  : '',
145
                        'link_edit' => $allowEdit ? $this->url()->fromRoute('group/my-groups/edit', ['id' => $record['uuid'] ])  : '',
Línea 146... Línea 146...
146
                        'link_delete' => $allowDelete ? $this->url()->fromRoute('group/my-groups/delete', ['id' => $record['uuid'] ]) : '',
146
                        'link_delete' => $allowDelete ? $this->url()->fromRoute('group/my-groups/delete', ['id' => $record['uuid'] ]) : '',
Línea 689... Línea 689...
689
                    ]);
689
                    ]);
690
                }
690
                }
691
            }
691
            }
692
            return new JsonModel([
692
            return new JsonModel([
693
                'success'   => true,
693
                'success'   => true,
694
                'data' => $this->url()->fromRoute('storage', ['type' => 'group', 'code' => $group->uuid, 'filename' => $group->image])
694
                'data' => $this->url()->fromRoute('storage', ['type' => 'group', 'code' => $group->uuid, 'filename' => $group->image],['force_canonical' => true])
Línea 695... Línea 695...
695
                
695
                
696
            ]);
696
            ]);
Línea 831... Línea 831...
831
                    ]);
831
                    ]);
832
                }
832
                }
833
            }
833
            }
834
            return new JsonModel([
834
            return new JsonModel([
835
                'success'   => true,
835
                'success'   => true,
836
                'data' => $this->url()->fromRoute('storage', ['type' => 'group-cover', 'code' => $group->uuid, 'filename' => $group->cover])
836
                'data' => $this->url()->fromRoute('storage', ['type' => 'group-cover', 'code' => $group->uuid, 'filename' => $group->cover],['force_canonical' => true])
Línea 837... Línea 837...
837
                
837
                
838
            ]);
838
            ]);