Different permissions for posting vs. viewing?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
tombriggs
Regular
Posts: 24
Joined: Thu Aug 09, 2007 3:54 pm

Different permissions for posting vs. viewing?

Post by tombriggs »

I have my site configured to use a static page as the front page.

I have my template configured display information entered into extended properties.

I want registered users to be able to post, but not to create new static pages or enter extended properties.

If I disable the extended properties and static pages plugins for the Standard Editor group, my home page doesn't display correctly and the extended properties aren't displayed in the posts. But if I enable them, then the Static Pages option shows up in the admin section and the Extended Properties section is visible when entering a new post.

Is there any way to control plugin availability in the admin section vs. when displaying entries?

Thanks
-Tom
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Different permissions for posting vs. viewing?

Post by garvinhicking »

Hi!

You can check the user group management in your s9y admin interface; there you can disable certain event plugins or event hooks for certain member groups.

But you can only generally forbid authors the execution of any plugins inside the "Extended options" part. So not only "Extended properties" will vanish, but also things like "announce entries" or "tags".

So you shouldn't forbid the whole plugin, only the certain event hooks.

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/
tombriggs
Regular
Posts: 24
Joined: Thu Aug 09, 2007 3:54 pm

Re: Different permissions for posting vs. viewing?

Post by tombriggs »

garvinhicking wrote: You can check the user group management in your s9y admin interface; there you can disable certain event plugins or event hooks for certain member groups.

...
So you shouldn't forbid the whole plugin, only the certain event hooks.
Thanks.

It looks like there are some events I can disable that make the Manage Links and Static Pages options non-functional. That'll do for those, I guess.

But what event(s) should I disable to keep the extended properties out of the New Entry page? I can't seem to find any way to keep that section out of the interface except by disabling the entire plugin.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Different permissions for posting vs. viewing?

Post by garvinhicking »

Hi!

That would be the "backend_display" event hook.

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