Re: [Catalyst] Changing Formhandler field-type/widget based on Catalyst user-role

2012-05-24 Thread Denny
On Wed, 2012-05-23 at 23:24 -0500, will trillich wrote: Short version: How can we toggle field X from being a Select (popup) for Admin users, to being a Hidden (nothing visible, but the value is maintained) for Manager users? Short answer; don't. If you're maintaining the value for users who

Re: [Catalyst] Role problems, Still

2012-05-24 Thread Kenneth S Mclane
Well since the passwords are maintained by a company wide system and can be authenticated via LDAP, I don't think I want to reinvent the authorization, since it is working. I think I will just reinvent the role checking, which should be much simpler. My question is: can I store the role

Re: [Catalyst] Role problems, Still

2012-05-24 Thread Tomas Doran
On 24 May 2012, at 13:45, Kenneth S Mclane wrote: Well since the passwords are maintained by a company wide system and can be authenticated via LDAP, I don't think I want to reinvent the authorization, since it is working. I think I will just reinvent the role checking, which should be

Re: [Catalyst] Changing Formhandler field-type/widget based on Catalyst user-role

2012-05-24 Thread will trillich
Hmm. Still puzzled as to what solution might work with that approach. Maybe changing-field-type is philosophically questionable, but the mechanism still looks like it should work. :) But didn't. So we're off to try more FormHandler magic from a different angle (not catalyst-affected, so we're

Re: [Catalyst] Role problems, Still

2012-05-24 Thread Kenneth S Mclane
Yes, I meant the authentication. I'm adding code right after authentication to check for existence if the user in the db, adding them if not as well as assigning the default role then I want to store the list of roles in the session so I can control access. Working my way through it. Tomas

[Catalyst] Catalyst::Test Plack and HTTP Auth

2012-05-24 Thread Alejandro Imass
Hello, Is it possible to set the auth headers with the Plack stuff w/o having to do the base64 and set headers manually? I.e. something like with mech: $mech-credentials( $username, $password ); But using the Catalyst::Test way... Thanks! -- Alejandro Imass

[Catalyst] Re: Catalyst::Test Plack and HTTP Auth

2012-05-24 Thread Alejandro Imass
On Thu, May 24, 2012 at 1:53 PM, Alejandro Imass alejandro.im...@gmail.com wrote: Hello, Is it possible to set the auth headers with the Plack stuff w/o having to do the base64 and set headers manually? I.e. something like with mech: $mech-credentials( $username, $password ); But using

[Catalyst] Re: Catalyst::Test Plack and HTTP Auth

2012-05-24 Thread Alejandro Imass
On Thu, May 24, 2012 at 2:02 PM, Alejandro Imass alejandro.im...@gmail.com wrote: On Thu, May 24, 2012 at 1:53 PM, Alejandro Imass alejandro.im...@gmail.com wrote: Hello, Is it possible to set the auth headers with the Plack stuff w/o having to do the base64 and set headers manually? I.e.