/**
  * Add the default properties accesses for each roles
  */
 public function addDefaultProperties()
 {
     $properties = User::getEditableProperties();
     $this->om->startFlushSuite();
     foreach ($properties as $property => $editable) {
         $this->addProperties($property, $editable);
     }
     $this->om->endFlushSuite();
 }
Esempio n. 2
0
 /**
  * Returns the facet list.
  *
  * @EXT\Route("/properties", name="claro_admin_profile_properties")
  * @EXT\Template
  *
  * @return Response
  */
 public function profilePropertiesAction()
 {
     $platformRoles = $this->roleManager->getPlatformNonAdminRoles(false);
     $labels = User::getEditableProperties();
     $properties = $this->profilePropertyManager->getAllProperties();
     return ['platformRoles' => $platformRoles, 'labels' => $labels, 'properties' => $properties];
 }