|
From: Ben C. <php...@be...> - 2001-08-25 04:59:53
|
So, I took Kristian's (phplib author) ideas for a new auth schema (http://www.geocrawler.com/archives/3/195/2001/7/150/6234214/) as a starting point. Making the changes in the recent commit _will_ kill your ability to login to phpbt as a user -- just a warning. Of course, I'll try to get the login stuff working tomorrow so it won't be a problem too long. I just wanted to get the schema into your hands so you can poke at it and see what ideas come. This layout is flexible enough to assign users to groups, perms to groups, and even perms to users (though at the moment I don't think we have enough to perms to worry about perms to users). When new projects are created the project name should be entered into auth_group. These groups won't actually have perms assigned to them, but will be used for checking if users can work with certain projects. So I'm thinking of a function like member_of_group($projectname) would return a boolean or some such (it's too late for me to be thinking of implementation). :) So, feel free to give me some comments on whether you think this is way to achieve our goals. Oh, and Javier, I forgot to add the login_name to auth_user -- so feel free to do it or I'll do it tomorrow. |