[symfony-users] Re: Dynamic security.yml

2009-04-16 Thread Roland Cruse
Hi I am working on an application which needs to be generic where it would be up a user (administrator) to decide what actions other users are allowed. So we built a check box interface to security.yml files in every module using the sfYaml class for reading said files and writing them back

[symfony-users] Re: Dynamic security.yml

2009-04-10 Thread HAUSa
Hmmm... that does make sense. I'll take it into practice, thx! On 9 apr, 22:31, Richtermeister nex...@gmail.com wrote: Hi Hausa, maybe I'm wrong but it seems that you're going about it backwards.. Instead of dynamically controlling what permissions are required, you should just set those

[symfony-users] Re: Dynamic security.yml

2009-04-09 Thread HAUSa
* reminder * I really need this, can anyone help me please? :) Thx in advance! On 8 apr, 19:48, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is there a way to dynamically generate the security.yml file? In that file you can configure which credentials are required for the

[symfony-users] Re: Dynamic security.yml

2009-04-09 Thread FÁSI Gábor
I don't think you can make this .yml file dynamic, but you can create dynamic credential checks with something like sfBasicSecurityFilter. You can check its source here: http://trac.symfony-project.org/browser/branches/1.2/lib/filter/sfBasicSecurityFilter.class.php Focus on the

[symfony-users] Re: Dynamic security.yml

2009-04-09 Thread HAUSa
Ok, I will look into it. Thank you! More suggestions are welcome :) On 9 apr, 13:54, FÁSI Gábor maerl...@gmail.com wrote: I don't think you can make this .yml file dynamic, but you can create dynamic credential checks with something like sfBasicSecurityFilter. You can check its source

[symfony-users] Re: Dynamic security.yml

2009-04-09 Thread FÁSI Gábor
I haven't used filters yet, but askeet's day 18 [1] and the Book's chapter 6 [2] deal with filters, and the latter one seems to be good enough for a kickstart. [1] http://www.symfony-project.org/askeet/1_0/en/18#chapter_18_create-a-filter [2]

[symfony-users] Re: Dynamic security.yml

2009-04-09 Thread Richtermeister
Hi Hausa, maybe I'm wrong but it seems that you're going about it backwards.. Instead of dynamically controlling what permissions are required, you should just set those once, and then dynamically control what users have those permissions. For example, I give every module a general credential