problems with guestbook plugin v. 1.37

Creating and modifying plugins.
Post Reply
René Marquardt
Regular
Posts: 5
Joined: Thu Apr 13, 2006 8:22 pm
Location: Hamburg
Contact:

problems with guestbook plugin v. 1.37

Post by René Marquardt »

Hi there,

I have activated the "Guestbook (guest)" - plugin at my Serendipity blog.
Here is the link: www.rene-marquardt.eu

I want my page visitors to register at my blog. Then they are allowed to post comments.
I gave their group, the editor group, the minimum of rights... so that they can't manipulate my blog.

But they have the right to delete guestbook entries ?! :?
And I can't find any place where I can disable their right to delete guestbook entries..

Does anybody know how I can fix it?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: problems with guestbook plugin v. 1.37

Post by garvinhicking »

Hi!

Yes, the guestbook plugin does not have "permissions". It just thinks that every registered author on your blog can administrate it.

So somebody needs to code that plugin so that either only real admins can remove the entries (that would not be too hard and can easily be patched with a "if ($serendipity['userlevel'] >= USERLEVEL_ADMIN)" PHP check, or that the plugin gets full permission support...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
René Marquardt
Regular
Posts: 5
Joined: Thu Apr 13, 2006 8:22 pm
Location: Hamburg
Contact:

Post by René Marquardt »

Thank you for your help.

Unfortunately I never learned php. I have to wait until somebody has coded the patch.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I've committed this in 1.38 of the plugin. You should be able to fetch it from spartacus.s9y.org in a day or so. This only allows to delete entries to the Admin user!

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
René Marquardt
Regular
Posts: 5
Joined: Thu Apr 13, 2006 8:22 pm
Location: Hamburg
Contact:

Post by René Marquardt »

Nice ! Thank you very much.
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Thanks a million! :D

I've been wanting to learn more about plugins and try to figure out a way to add something to the guestbook to help prevent spam but I don't know enough about programming to get started good. This does help in getting rid of it anyway.
Post Reply