Re: [Maypole] Maypole::Plugin::Authorization

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Thu Jan 13 2005 - 15:06:38 GMT


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

_______________________________________________
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