[pLog-svn] isAdmin not working

Reto Hugi plog at hugi.to
Mon Sep 19 20:45:41 GMT 2005

On 19.09.2005 08:29, Oscar Renalias wrote:
> all you need to do is set the site_admin field in the plog_users table
> to '1', clean your tmp/ folder (specially the tmp/cache/ folder) and
> try again. I just tried and it worked fine for me :-)
> You don't see the string site_admin almost at all in the code because
> Mode::get() and Model::getMany() now generate their SQL queries
> automatically, based on what fields are listed in the
> DbObject::_fields array. It probably looks a bit more complicated, but
> these methods help centralize the generation of SQL code as well as
> dealing with caches transparently for classes extending the Model base
> class...

Thanks, this worked! Does this mean, that in the plog_users_permissions
table the value 1 for permission_id is obsolete?

Guess the user object created in the wizard should get the field
site_admin then and Lines 1094 to 1096 can be removed, right?


More information about the pLog-svn mailing list