On 11 Oct 2010, at 9:03 , Ivo Ladage-van Doorn wrote: > Regarding your conclusion; > > So, I would stick with some code that creates a default admin account if > there is no user with admin role, and I would put that in some application > specific bundle, not in UserAdmin or in the core of Amdatu. > > A problem is that there is no way you can identify an ?admin role? nor an > ?admin user?. What is an admin role and what is an admin user? Usually it is > up to the application or administrator to define roles so how would the > system know what ?the admin role? is? It should be possible to replace all > default users and roles by any other set of users and roles. So the check > would be limited to testing if there are no users available (like it is now). > Of course we can move the ?create admin? logic easily from the UserAdmin > implementation to some higher level bundle.
My argument was to indeed move that logic completely to some higher level bundle exactly because you cannot know how to do this correctly at a lower level (certainly not in UserAdmin itself). Greetings, Marcel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.amdatu.org/pipermail/amdatu-developers/attachments/20101011/eead37cb/attachment.html

