[pLog-svn] user permissions

Jon Daley plogworld at jon.limedaley.com
Fri Mar 2 15:44:26 EST 2007


 	There is something funny with the user permissions.  Most of my 
blogs get updated via subversion, and at different points, I think they 
have all gotten messed up with permissions.  One looks better than the 
others, so I'll see if that upgrades to 1.2 successfully.
 	My blog removed permissions from the non-owner users.


Here was my users_permissions table prior to upgrading.  I am user_id = 3, 
and the site_admin flag is set only for me in the users table.

+----+---------+---------+---------------+
| id | user_id | blog_id | permission_id |
+----+---------+---------+---------------+
| 22 |       4 |       1 |             2 |
| 38 |      10 |       1 |             2 |
| 39 |      66 |       1 |             2 |
+----+---------+---------+---------------+


I was looking at the wizard code, because that is currently stopping the 
wizard from being able to be re-run, since it copies the new 
users_permissions to tmp_users, and tries to add a gazillion permissions 
for each row.  Probably the place where it says != 3 needs to be smarter, 
and maybe the code needs to be smarter and not even create the tmp_users 
table if the permission tables have already been upgraded.

None of my installations have a permission_id of 3 for any of the users.

I am confused.

-- 
Jon Daley
http://jon.limedaley.com/

Experience is something you don't get until just after you need it.
-- Olivier


More information about the pLog-svn mailing list