Page 1 of 1

Permissions for editing static pages

Posted: Wed Dec 19, 2007 4:40 pm
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

Posted: Wed Dec 19, 2007 9:25 pm
by Don Chambers
You raise a very good point - static page permissions should probably be part of group permissions.....

Posted: Wed Dec 19, 2007 10:36 pm
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

Posted: Wed Dec 19, 2007 10:50 pm
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).

Posted: Wed Dec 19, 2007 10:52 pm
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