From: Alvaro d. C. <ac...@ba...> - 2001-03-12 18:29:13
|
Brian Aker wrote: > > Chris Nandor wrote: > > Yeah, I was thinking about something very similar at one point, and think > > this is a nice idea. I wonder, though, if maybe users_param would be a > > better user of this? So instead of: > I would keep it out of users_param, but use the same schema. > > > Or, alternatively, implement users_acl _as_ a param-style table. The > > problem, of course, is that we could have dozens of types of permissions, > > and it is easier to just insert a new value than it is to change the schema > > each time you want to add a new one (and this would make it more easily > > extensible via the admin interface, too). Also, a table with a few dozen > > fields could be slower and more bloated. > The param style table is actually pretty quick for look ups. > > If the schema was modified to resemble a param table and we had patches > for getUser() and setUser() I would probably be all for including it. If we use the users_param table we don't need to touch getUser and setUser, no? The changes are reduced to modify the ACL functions that I have included in Slash.pm. Is it the correct place? This changes are minimal. > > It might be nice also to have a seperate table which described param's > currently in use. Yes, because the kind of operations that a site can have can't be determinated a priori. The ACL scheme enables the creations of new operations without any need to change the actual code. Only when you have to take advantge of this new operations you have to tell it to the getACLindex. Do you think that this model could replace the seclev model in the future? As I say in other email, I have found very easy to make co-live the to models in the transition. I plan to send a patch to the list to show how we have modified admin.pl to partially work using ACLs. Bye -- Alvaro > -Brian > > _______________________________________________ > Slashcode-development mailing list > Sla...@li... > http://lists.sourceforge.net/lists/listinfo/slashcode-development -- =================================================== Alvaro del Castillo San Félix ac...@ba... Barrapunto.com |