Permissions for editing static pages

Creating and modifying plugins.
Post Reply
rae.tee
Posts: 1
Joined: Wed Dec 19, 2007 4:07 pm

Permissions for editing static pages

Post by rae.tee »

Hi all,

I would like standard and chief editors of my blog (i.e. any user) to be able to edit static pages created by any user, and not just their own. I assume I ought to be able to change this by modifying the string

Code: Select all

($serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN));
in the serendipity_event_staticpage.php file - but I as a newbie I'm afraid I cannot work out what I should change it to. Could someone please advise?

Many thanks!
Rae
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

You raise a very good point - static page permissions should probably be part of group permissions.....
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Most plugins still work with userlevels and not group permissions.

Rae.tee: In your case, you would need to change "USERLEVEL_ADMIN" with "USERLEVEL_EDITOR".

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/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

What I meant Garvin is that I think the manage groups should have an option for static pages that is just like entries, eg:

Code: Select all

adminStaticPages: Administrate static pages 	
  adminStaticPagesMaintainOthers: Administrate other user's static pages
I was just asked this exact question about a week ago (not on the forums).
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, that would be fine. But technically, this is quite challenging. Actually, the whole staticpage plugin would need some remodelling to support its own usergroups. Falk was working on that a year ago, but no results have surfaced yet.

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/
Post Reply