--- Dave Howorth <dhoworth at mrc-lmb.cam.ac.uk> wrote:
> Jay Strauss wrote:
> > Why don't you put a column "is_default" (or some such) on the auth_roles
> > table to facilitate:
> >
> > Create new user
> > ...Newly created users should automatically be
> > assigned to the 'default' role.
> >
> > then on user creation you could stick the appropriate data in
> > role_assignments
>
> Hi Jay,
>
> You mean so the user creation action could say:
>
> my $default_role = BeerDB::AuthRoles->search( is_default => 1 );
>
> instead of:
>
> my $default_role = BeerDB::AuthRoles->search( name => 'default' );
>
> I'm not sure an extra column on every row is worth one hard-coded
> constant. Are there any strong arguments?
>
> Cheers, Dave
>
I think i'd prefer to put it in $r->config->{def_auth_role}. I like the idea of
configuring evrything in config. Easy to remember where settings are.
=====
pjs
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT