Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5343 Rev 5546
Línea 1... Línea 1...
1
<?php
1
<?php
Línea 2... Línea 2...
2
 
2
 
Línea 3... Línea 3...
3
use LeadersLinked\Model\UserType;
3
use LeadersLinked\Model\UserType;
-
 
4
 
4
 
5
function getAclResources()
5
function getAclResources() {
6
{
6
    return [
7
    return [
7
        'home',
8
        'home',
8
        'onroom',
9
        'onroom',
Línea 72... Línea 73...
72
        'post/comments',
73
        'post/comments',
73
        'post/comments/add',
74
        'post/comments/add',
74
        'post/comments/delete',
75
        'post/comments/delete',
75
        'post/like',
76
        'post/like',
76
        'post/unlike',
77
        'post/unlike',
77
        
78
 
78
        'feed',
79
        'feed',
79
        'feed/timeline',
80
        'feed/timeline',
80
        'feed/add',
81
        'feed/add',
81
        'feed/delete',
82
        'feed/delete',
82
        'feed/share',
83
        'feed/share',
Línea 228... Línea 229...
228
        'chat/clear',
229
        'chat/clear',
229
        'chat/open',
230
        'chat/open',
230
        'chat/upload',
231
        'chat/upload',
231
        'chat/zoom',
232
        'chat/zoom',
232
        'chat/open-or-create',
233
        'chat/open-or-create',
233
        
234
 
234
        'helpers',
235
        'helpers',
235
        'helpers/search-people',
236
        'helpers/search-people',
236
        'helpers/posts',
237
        'helpers/posts',
237
        'helpers/people-you-may-know',
238
        'helpers/people-you-may-know',
238
        'helpers/people-viewed-profile',
239
        'helpers/people-viewed-profile',
Línea 254... Línea 255...
254
        'marketplace/join',
255
        'marketplace/join',
255
        'marketplace/buy',
256
        'marketplace/buy',
256
        'calendar',
257
        'calendar',
257
        'calendar/events',
258
        'calendar/events',
Línea 258... Línea 259...
258
 
259
 
259
        
260
 
260
        //'zoom',
261
        //'zoom',
261
        //'zoom/add',
262
        //'zoom/add',
262
        //'zoom/delete',
263
        //'zoom/delete',
263
       // 'zoom/listing',
264
        // 'zoom/listing',
264
       
265
 
265
        'my-coach',
266
        'my-coach',
266
        'daily-pulse',
267
        'daily-pulse',
267
        'daily-pulse/how_are_you_feel',
268
        'daily-pulse/how_are_you_feel',
268
        'daily-pulse/climate_on_your_organization',
269
        'daily-pulse/climate_on_your_organization',
269
    ];
-
 
270
    
270
    ];
Línea 271... Línea 271...
271
}
271
}
-
 
272
 
272
 
273
function getAclSuperAdmin()
273
function getAclSuperAdmin() {
274
{
274
    return [
275
    return [
275
        'impersonate',
276
        'impersonate',
276
        'impersonate/execute',
-
 
277
    ];  
277
        'impersonate/execute',
Línea 278... Línea 278...
278
    
278
    ];
279
}
279
}
280
 
280
 
281
function getAclUsertypeDefaultNetwork() 
281
function getAclUsertypeDefaultNetwork()
282
{
282
{
283
    return [
283
    return [
Línea 297... Línea 297...
297
            'company/requests-sent',
297
            'company/requests-sent',
298
            'company/invitations-received',
298
            'company/invitations-received',
299
            'company/i-work-with',
299
            'company/i-work-with',
300
            'search',
300
            'search',
301
            'search/company',
301
            'search/company',
302
            
302
 
303
            'my-coach',
303
            'my-coach',
304
        ]  ,
304
        ],
305
        UserType::USER => [
305
        UserType::USER => [
306
            'company',
306
            'company',
307
            'company/my-companies',
307
            'company/my-companies',
308
            'company/my-companies/add',
308
            'company/my-companies/add',
309
            'company/following-companies',
309
            'company/following-companies',
Línea 318... Línea 318...
318
            'company/requests-sent',
318
            'company/requests-sent',
319
            'company/invitations-received',
319
            'company/invitations-received',
320
            'company/i-work-with',
320
            'company/i-work-with',
321
            'search',
321
            'search',
322
            'search/company',
322
            'search/company',
323
            
323
 
324
            'my-coach',
324
            'my-coach',
325
            
-
 
Línea -... Línea 325...
-
 
325
 
326
 
326
 
327
        ]  ,
327
        ],
328
    ];
328
    ];
Línea 329... Línea 329...
329
}
329
}
Línea 358... Línea 358...
358
    ];
358
    ];
359
}
359
}
Línea 360... Línea 360...
360
 
360
 
-
 
361
 
361
 
362
 
362
 
363
function getAclUsertype()
363
function getAclUsertype() {
364
{
364
    return [
365
    return [
365
        UserType::ADMIN => [
366
        UserType::ADMIN => [
Línea 376... Línea 377...
376
            'signup',
377
            'signup',
377
            'csrf',
378
            'csrf',
378
            'check-session',
379
            'check-session',
379
            'shorter',
380
            'shorter',
380
            'shorter/generate',
381
            'shorter/generate',
381
            
382
 
382
            'notifications',
383
            'notifications',
383
            'notifications/mark-read',
384
            'notifications/mark-read',
384
            'notifications/mark-all-read',
385
            'notifications/mark-all-read',
385
            'notifications/delete',
386
            'notifications/delete',
386
            'notifications/clear',
387
            'notifications/clear',
387
            'notifications/unreads',
388
            'notifications/unreads',
388
            
389
 
389
            'reset-password',
390
            'reset-password',
390
            'forgot-password',
391
            'forgot-password',
391
            'professionalism-policy',
392
            'professionalism-policy',
392
            'activate-account',
393
            'activate-account',
393
            'privacy-policy',
394
            'privacy-policy',
Línea 570... Línea 571...
570
            'chat/clear',
571
            'chat/clear',
571
            'chat/open',
572
            'chat/open',
572
            'chat/upload',
573
            'chat/upload',
573
            'chat/zoom',
574
            'chat/zoom',
574
            'chat/open-or-create',
575
            'chat/open-or-create',
575
            
576
 
576
            'help',
577
            'help',
577
            'helpers',
578
            'helpers',
578
            'helpers/search-people',
579
            'helpers/search-people',
579
            'helpers/posts',
580
            'helpers/posts',
580
            'helpers/people-you-may-know',
581
            'helpers/people-you-may-know',
Línea 597... Línea 598...
597
            'marketplace/join',
598
            'marketplace/join',
598
            'marketplace/buy',
599
            'marketplace/buy',
Línea 599... Línea 600...
599
 
600
 
600
            'calendar',
601
            'calendar',
601
            'calendar/events',
602
            'calendar/events',
602
            
603
 
603
            
604
 
604
            //'zoom',
605
            //'zoom',
605
            //'zoom/add',
606
            //'zoom/add',
606
            // 'zoom/delete',
607
            // 'zoom/delete',
607
            // 'zoom/listing',
608
            // 'zoom/listing',
Línea 810... Línea 811...
810
            'chat/clear',
811
            'chat/clear',
811
            'chat/open',
812
            'chat/open',
812
            'chat/upload',
813
            'chat/upload',
813
            'chat/zoom',
814
            'chat/zoom',
814
            'chat/open-or-create',
815
            'chat/open-or-create',
815
            
816
 
816
            'help',
817
            'help',
817
            'helpers',
818
            'helpers',
818
            'helpers/search-people',
819
            'helpers/search-people',
819
            'helpers/posts',
820
            'helpers/posts',
820
            'helpers/people-you-may-know',
821
            'helpers/people-you-may-know',
Línea 837... Línea 838...
837
            'marketplace/join',
838
            'marketplace/join',
838
            'marketplace/buy',
839
            'marketplace/buy',
Línea 839... Línea 840...
839
 
840
 
840
            'calendar',
841
            'calendar',
841
            'calendar/events',
842
            'calendar/events',
842
            
843
 
843
            // 'zoom',
844
            // 'zoom',
844
            // 'zoom/add',
845
            // 'zoom/add',
845
            //  'zoom/delete',
846
            //  'zoom/delete',
846
            //  'zoom/listing',
847
            //  'zoom/listing',
Línea 889... Línea 890...
889
            'services/fcm',
890
            'services/fcm',
890
            'services/signin',
891
            'services/signin',
891
            'services/signout',
892
            'services/signout',
892
            'services/sync',
893
            'services/sync',
893
            'services/sync-batch',
894
            'services/sync-batch',
894
            
895
 
895
            // 'zoom',
896
            // 'zoom',
896
            // 'zoom/add',
897
            // 'zoom/add',
897
            // 'zoom/delete',
898
            // 'zoom/delete',
898
            // 'zoom/listing',
899
            // 'zoom/listing',
899
        ],
900
        ],
Línea 976... Línea 977...
976
                        ],
977
                        ],
977
                        [
978
                        [
978
                            'label' => 'LABEL_PEOPLE_BLOCKED',
979
                            'label' => 'LABEL_PEOPLE_BLOCKED',
979
                            'route' => 'connection/people-blocked'
980
                            'route' => 'connection/people-blocked'
980
                        ],
981
                        ],
981
                        
982
 
982
                        
983
 
983
                    ]
984
                    ]
984
                ],
985
                ],
985
                [
986
                [
986
                    'label' => 'LABEL_MY_PROFILES',
987
                    'label' => 'LABEL_MY_PROFILES',
987
                    'route' => 'profile/my-profiles'
988
                    'route' => 'profile/my-profiles'
Línea 996... Línea 997...
996
                ],
997
                ],
997
                [
998
                [
998
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
999
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
999
                    'route' => 'profile/people-viewed-profile'
1000
                    'route' => 'profile/people-viewed-profile'
1000
                ],
1001
                ],
1001
                
1002
 
1002
            ]
1003
            ]
1003
        ],
1004
        ],
1004
        
1005
 
1005
        
1006
 
1006
        [
1007
        [
1007
            'label' => 'LABEL_COMPANIES',
1008
            'label' => 'LABEL_COMPANIES',
1008
            'route' => 'company',
1009
            'route' => 'company',
1009
            'class' => '/images/navbar/empresa.svg',
1010
            'class' => '/images/navbar/empresa.svg',
1010
            'pages' => [
1011
            'pages' => [
Línea 1028... Línea 1029...
1028
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1029
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1029
                    'route' => 'company/invitations-received'
1030
                    'route' => 'company/invitations-received'
1030
                ]
1031
                ]
1031
            ]
1032
            ]
1032
        ],
1033
        ],
1033
        
1034
 
1034
        [
1035
        [
1035
            'label' => 'LABEL_GROUPS',
1036
            'label' => 'LABEL_GROUPS',
1036
            'route' => 'group',
1037
            'route' => 'group',
1037
            'class' => '/images/navbar/grupos.svg',
1038
            'class' => '/images/navbar/grupos.svg',
1038
            'pages' => [
1039
            'pages' => [
Línea 1062... Línea 1063...
1062
        [
1063
        [
1063
            'label' => 'LABEL_CALENDAR',
1064
            'label' => 'LABEL_CALENDAR',
1064
            'route' => 'calendar',
1065
            'route' => 'calendar',
1065
            'class' => '/images/navbar/calendar.svg',
1066
            'class' => '/images/navbar/calendar.svg',
1066
        ],
1067
        ],
1067
        
1068
 
1068
        
1069
 
1069
        
1070
 
1070
        
1071
 
1071
        
1072
 
1072
        
1073
 
1073
        
1074
 
1074
        
1075
 
1075
        /* [
1076
        /* [
1076
         'label' => 'LABEL_MESSAGES',
1077
         'label' => 'LABEL_MESSAGES',
1077
         'route' => 'inmail',
1078
         'route' => 'inmail',
1078
         'class' => 'fa fa-envelope',
1079
         'class' => 'fa fa-envelope',
1079
         ],
1080
         ],
Línea 1098... Línea 1099...
1098
            'route' => 'profile',
1099
            'route' => 'profile',
1099
            'class' => '/images/navbar/perfil.svg',
1100
            'class' => '/images/navbar/perfil.svg',
1100
            'pages' => [
1101
            'pages' => [
1101
                [
1102
                [
1102
                    'label' => 'LABEL_MY_CONNECTIONS',
1103
                    'label' => 'LABEL_MY_CONNECTIONS',
1103
                    'route' =>'connection/my-connections',
1104
                    'route' => 'connection/my-connections',
1104
                ],
1105
                ],
1105
                [
1106
                [
1106
                    'label' => 'LABEL_MY_PROFILES',
1107
                    'label' => 'LABEL_MY_PROFILES',
1107
                    'route' => 'profile/my-profiles'
1108
                    'route' => 'profile/my-profiles'
1108
                ],
1109
                ],
Línea 1116... Línea 1117...
1116
                ],
1117
                ],
1117
                [
1118
                [
1118
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1119
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1119
                    'route' => 'profile/people-viewed-profile'
1120
                    'route' => 'profile/people-viewed-profile'
1120
                ],
1121
                ],
1121
                
1122
 
1122
            ]
1123
            ]
1123
        ],
1124
        ],
1124
        
1125
 
1125
        
1126
 
1126
        [
1127
        [
1127
            'label' => 'LABEL_COMPANIES',
1128
            'label' => 'LABEL_COMPANIES',
1128
            'route' => 'company',
1129
            'route' => 'company',
1129
            'class' => '/images/navbar/empresa.svg',
1130
            'class' => '/images/navbar/empresa.svg',
1130
            'pages' => [
1131
            'pages' => [
Línea 1148... Línea 1149...
1148
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1149
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1149
                    'route' => 'company/invitations-received'
1150
                    'route' => 'company/invitations-received'
1150
                ]
1151
                ]
1151
            ]
1152
            ]
1152
        ],
1153
        ],
1153
        
1154
 
1154
        [
1155
        [
1155
            'label' => 'LABEL_GROUPS',
1156
            'label' => 'LABEL_GROUPS',
1156
            'route' => 'group',
1157
            'route' => 'group',
1157
            'class' => '/images/navbar/grupos.svg',
1158
            'class' => '/images/navbar/grupos.svg',
1158
            'pages' => [
1159
            'pages' => [
Línea 1182... Línea 1183...
1182
        [
1183
        [
1183
            'label' => 'LABEL_CALENDAR',
1184
            'label' => 'LABEL_CALENDAR',
1184
            'route' => 'calendar',
1185
            'route' => 'calendar',
1185
            'class' => '/images/navbar/calendar.svg',
1186
            'class' => '/images/navbar/calendar.svg',
1186
        ],
1187
        ],
1187
        
1188
 
1188
        
1189
 
1189
        
1190
 
1190
        
1191
 
1191
        
1192
 
1192
        
1193
 
1193
        
1194
 
1194
        
1195
 
1195
        /* [
1196
        /* [
1196
         'label' => 'LABEL_MESSAGES',
1197
         'label' => 'LABEL_MESSAGES',
1197
         'route' => 'inmail',
1198
         'route' => 'inmail',
1198
         'class' => 'fa fa-envelope',
1199
         'class' => 'fa fa-envelope',
1199
         ],
1200
         ],
Línea 1241... Línea 1242...
1241
                        ],
1242
                        ],
1242
                        [
1243
                        [
1243
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1244
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1244
                            'route' => 'connection/people-blocked'
1245
                            'route' => 'connection/people-blocked'
1245
                        ],
1246
                        ],
1246
                        
1247
 
1247
                        
1248
 
1248
                    ]
1249
                    ]
1249
                ],
1250
                ],
1250
                [
1251
                [
1251
                    'label' => 'LABEL_MY_PROFILES',
1252
                    'label' => 'LABEL_MY_PROFILES',
1252
                    'route' => 'profile/my-profiles'
1253
                    'route' => 'profile/my-profiles'
1253
                ],
1254
                ],
1254
                [
1255
                [
1255
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1256
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1256
                    'route' => 'profile/people-viewed-profile'
1257
                    'route' => 'profile/people-viewed-profile'
1257
                ],
1258
                ],
1258
                
1259
 
1259
            ]
1260
            ]
1260
        ],
1261
        ],
1261
        
1262
 
1262
        [
1263
        [
1263
            'label' => 'LABEL_COMPANY',
1264
            'label' => 'LABEL_COMPANY',
1264
            'route' => 'company',
1265
            'route' => 'company',
1265
            'class' => '/images/navbar/empresa.svg',
1266
            'class' => '/images/navbar/empresa.svg',
1266
            
1267
 
1267
        ],
1268
        ],
1268
        
1269
 
1269
        [
1270
        [
1270
            'label' => 'LABEL_GROUPS',
1271
            'label' => 'LABEL_GROUPS',
1271
            'route' => 'group',
1272
            'route' => 'group',
1272
            'class' => '/images/navbar/grupos.svg',
1273
            'class' => '/images/navbar/grupos.svg',
1273
            'pages' => [
1274
            'pages' => [
Línea 1297... Línea 1298...
1297
        [
1298
        [
1298
            'label' => 'LABEL_CALENDAR',
1299
            'label' => 'LABEL_CALENDAR',
1299
            'route' => 'calendar',
1300
            'route' => 'calendar',
1300
            'class' => '/images/navbar/calendar.svg',
1301
            'class' => '/images/navbar/calendar.svg',
1301
        ],
1302
        ],
1302
        
1303
 
1303
        
1304
 
1304
        
1305
 
1305
        
1306
 
1306
        
1307
 
1307
        
1308
 
1308
        
1309
 
1309
        
1310
 
1310
        /* [
1311
        /* [
1311
         'label' => 'LABEL_MESSAGES',
1312
         'label' => 'LABEL_MESSAGES',
1312
         'route' => 'inmail',
1313
         'route' => 'inmail',
1313
         'class' => 'fa fa-envelope',
1314
         'class' => 'fa fa-envelope',
1314
         ],
1315
         ],
Línea 1343... Línea 1344...
1343
                ],
1344
                ],
1344
                [
1345
                [
1345
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1346
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1346
                    'route' => 'profile/people-viewed-profile'
1347
                    'route' => 'profile/people-viewed-profile'
1347
                ],
1348
                ],
1348
                
1349
 
1349
            ]
1350
            ]
1350
        ],
1351
        ],
1351
        
1352
 
1352
        [
1353
        [
1353
            'label' => 'LABEL_COMPANY',
1354
            'label' => 'LABEL_COMPANY',
1354
            'route' => 'company',
1355
            'route' => 'company',
1355
            'class' => '/images/navbar/empresa.svg',
1356
            'class' => '/images/navbar/empresa.svg',
1356
            
1357
 
1357
        ],
1358
        ],
1358
       
1359
 
1359
        
1360
 
1360
        [
1361
        [
1361
            'label' => 'LABEL_GROUPS',
1362
            'label' => 'LABEL_GROUPS',
1362
            'route' => 'group',
1363
            'route' => 'group',
1363
            'class' => '/images/navbar/grupos.svg',
1364
            'class' => '/images/navbar/grupos.svg',
1364
            'pages' => [
1365
            'pages' => [
Línea 1388... Línea 1389...
1388
        [
1389
        [
1389
            'label' => 'LABEL_CALENDAR',
1390
            'label' => 'LABEL_CALENDAR',
1390
            'route' => 'calendar',
1391
            'route' => 'calendar',
1391
            'class' => '/images/navbar/calendar.svg',
1392
            'class' => '/images/navbar/calendar.svg',
1392
        ],
1393
        ],
1393
        
1394
 
1394
        
1395
 
1395
        
1396
 
1396
        
1397
 
1397
        
1398
 
1398
        
1399
 
1399
        
1400
 
1400
        
1401
 
1401
        /* [
1402
        /* [
1402
         'label' => 'LABEL_MESSAGES',
1403
         'label' => 'LABEL_MESSAGES',
1403
         'route' => 'inmail',
1404
         'route' => 'inmail',
1404
         'class' => 'fa fa-envelope',
1405
         'class' => 'fa fa-envelope',
1405
         ],
1406
         ],