Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5951 Rev 6388
Línea 331... Línea 331...
331
                $this->acl->allow(UserType::ADMIN, $resourceName);
331
                $this->acl->allow(UserType::ADMIN, $resourceName);
332
            }
332
            }
333
        }
333
        }
Línea -... Línea 334...
-
 
334
        
-
 
335
        
334
        
336
        
335
        
337
        $allowMyCoach = false;
Línea 336... Línea 338...
336
        $allowKnowledgeArea = false;
338
        $allowKnowledgeArea = false;
337
        $allowDailyPulse = false;
339
        $allowDailyPulse = false;
Línea 354... Línea 356...
354
            $companyService = $companyServiceMapper->fetchOneActiveByCompanyIdAndServiceId($company->id, Service::KNOWLEDGE_AREA);
356
            $companyService = $companyServiceMapper->fetchOneActiveByCompanyIdAndServiceId($company->id, Service::KNOWLEDGE_AREA);
355
            if($companyService && $companyUser) {
357
            if($companyService && $companyUser) {
356
                $allowKnowledgeArea = true;
358
                $allowKnowledgeArea = true;
357
            }
359
            }
Línea -... Línea 360...
-
 
360
            
-
 
361
            $companyService = $companyServiceMapper->fetchOneActiveByCompanyIdAndServiceId($company->id, Service::MY_COACH);
-
 
362
            if($companyService && $companyUser) {
-
 
363
                $allowMyCoach = true;
-
 
364
            }
358
            
365
            
359
        } else {
366
        } else {
360
            $companyUser = '';
367
            $companyUser = '';
Línea -... Línea 368...
-
 
368
        }
-
 
369
        
361
        }
370
        
362
        
-
 
363
        if($allowDailyPulse) {
-
 
364
            $usertype = $this->currentUserPlugin->getUserTypeId();
371
        $usertype = $this->currentUserPlugin->getUserTypeId();
365
            
372
        if($allowDailyPulse) {
366
            $resources = getAclDailyPulse();
373
            $resources = getAclDailyPulse();
367
            foreach($resources as $resourceName)
374
            foreach($resources as $resourceName)
368
            {
375
            {
369
                $this->acl->allow($usertype, $resourceName);
376
                $this->acl->allow($usertype, $resourceName);
Línea 370... Línea 377...
370
            }
377
            }
371
        }
-
 
372
        
-
 
373
        if($allowKnowledgeArea) {
378
        }
374
            $usertype = $this->currentUserPlugin->getUserTypeId();
379
        
375
            
380
        if($allowKnowledgeArea) {
376
            $resources = getAclKnowledgeArea();
381
            $resources = getAclKnowledgeArea();
377
            foreach($resources as $resourceName)
382
            foreach($resources as $resourceName)
378
            {
383
            {
Línea -... Línea 384...
-
 
384
                $this->acl->allow($usertype, $resourceName);
-
 
385
            }
-
 
386
        }
-
 
387
        
-
 
388
        if($allowMyCoach) {
-
 
389
            $resources = getAclMyCoach();
-
 
390
            foreach($resources as $resourceName)
-
 
391
            {
-
 
392
                $this->acl->allow($usertype, $resourceName);
Línea 379... Línea 393...
379
                $this->acl->allow($usertype, $resourceName);
393
            }
Línea 380... Línea 394...
380
            }
394