janizde / WP-Opening-Hours

Opening Hours Plugin for WordPress
GNU General Public License v2.0
55 stars 16 forks source link

Can I allow non-administrators to edit opening times? #139

Open stuehmer opened 4 years ago

stuehmer commented 4 years ago

Can I allow other user types such as contributers to edit parts or all of Opening Hours' settings? Specifically I would like some staff members to be able to add holidays. (Global write permissions to all settings are also a nice step in this direction.)

Thank you for the plugin, good stuff! I especially appreciate the flexibility and the schema.org representation.

janizde commented 4 years ago

Hey @stuehmer ,

by design it is meant to be only manageable by administrators, however the custom post type (so the part that lets you add, edit and delete sets) is set to capability_type: 'page'. It might work when you allow editors to also edit pages, but I can't be sure about that.

However I see that this might be useful and will introduce at least a filter, if not an option in the settings, to change that.

I appreciate you like the schema.org integration! If you like, drop me a private message (or comment here) with the URL to your site, I'd be interested how people are using it.

Thanks Jannik

stuehmer commented 4 years ago

Thank you, I elevated my users to Editor (to get page edit permissions) and it worked. Good enough workaround for me at this time.