> Look at this line  'editor' : auth.user and
> auth.has_membership(role='editor') or auth.user_id==1, # if current
> user a editor?

That was it...creating a simple application does not pre-populate
anything in the database, so the first user to register is
automatically an editor by virtue of having id==1.  Using the wizard
and populating the database generates a hundred sample users, so the
first real user to register is id 101, which fails the above check.

When I regenerated the app with the wizard but unchecked populate
tables, my first user was able to edit pages with the plugin wiki.

The right solution, of course, was to add the editor role to my user,
and not rely on the magic numbering of the id, but for just playing
around with it, not populating the data with the wizard was quicker.

Reply via email to