[FLOW3-general] Retrieve all configured roles

Heiko Kromm | Paints h.kromm at paints.de
Fri May 27 15:13:02 CEST 2011


Hi Andi, 

thanks for the method. I think it has to be: 
public function getRoles() { 
$roles = array(); 
foreach ($this->policy['roles'] as $roleIdentifier => $roleParents) { 
$roles[] = new \F3\FLOW3\Security\Policy\Role($roleIdentifier); 
} 
return $roles; 
} 
because policy['roles'] contains an array where the roleIdentifier is the key and the roleParents is an array with the parent roles. 

Thanks 
Heiko 



Von: "Andreas Förthner" <andreas.foerthner at netlogix.de> 
An: "General discussion about FLOW3" <flow3-general at lists.typo3.org> 
Gesendet: Freitag, 27. Mai 2011 13:47:32 
Betreff: Re: [FLOW3-general] Retrieve all configured roles 

Hi, 

Hm, seems like nobody needed that by now ;-) I added it in the following 
change you might want to test and review: 
https://review.typo3.org/#change,2386 

Greets Andi 

Am 27.05.11 11:58 schrieb "Heiko Kromm | Paints" unter <h.kromm at paints.de>: 

>Hi list, 
> 
>is it possible to retrieve a list of all roles configured in my 
>Policy.yaml? 
> 
>Regards 
>Heiko 
> 
> 
> 
> 
>Paints Multimedia GmbH 
>Heiko Kromm 
> 
>Lange Reihe 29 
>20099 Hamburg 
> 
>AG Hamburg HRB 86114 
>GF: Frank Till 
> 
>Tel: + 49 (0)40 - 27 808 285 
>Fax: + 49 (0)40 - 27 808 286 
> 
>E-Mail: h.kromm at paints.de 
>Internet: www.paints.de 
> 
> 
Andreas Förthner 
Leiter Web-Entwicklung 

Telefon: +49 (911) 539909 - 0 
E-Mail: andreas.foerthner at netlogix.de 
Website: media.netlogix.de 


-- 
netlogix GmbH & Co. KG 
IT-Services | IT-Training | Media 
Andernacher Straße 53 | 90411 Nürnberg 
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99 
E-Mail: info at netlogix.de | Internet: http://www.netlogix.de 

netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338) 
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634) 
Umsatzsteuer-Identifikationsnummer: DE 233472254 
Geschäftsführer: Stefan Buchta, Matthias Schmidt 



_______________________________________________ 
>FLOW3-general mailing list 
>FLOW3-general at lists.typo3.org 
>http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general 

_______________________________________________ 
FLOW3-general mailing list 
FLOW3-general at lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general 


More information about the FLOW3-general mailing list