PDA

View Full Version : Usergroup & $permissions array


AcidMaX2
07-12-2004, 12:36 PM
OK I added a column to the usergroup table manually and now I am trying to figure out how to get that column into the $permissions array.

the column is blogentriesperday (I added through phpMyAdmin and not through the admincp because I couldnt find where to add new columns to usergroup table).

So I added the column set the value and now when I do a print_r($permissions) the $permissions["blogentriesperday"] variable is not there. How do I make permissions grab that column too? I looked in init.php and I dont think thats where its at, if it is then I'm not sure how to / where to add it.

Anyone know?

Andreas
07-12-2004, 03:10 PM
Does work for me.
Did you edit any usergroup after adding this field? This is necessary to rebuild usergroupcache.

AcidMaX2
07-12-2004, 04:52 PM
No I dont believe I did. All I did was add the column to the table manually. I will try rebuilding the usergroup stuff to see if it rebuilds the cache :)

Thanks,
Andy