Home › Forums › Calendar Products › Events Calendar PRO › Role-Based Access to Event Editing Creation
- This topic has 11 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
February 21, 2012 at 9:51 am #15438
Tony
MemberQuestion: We have multiple sites using Admin/Manager/Employee roles (customized using User Role Editor), both Manager and Employees are just modified Subscriber accounts. My question is what user level 0-9 grants access to create/edit events?
February 21, 2012 at 12:13 pm #15463Rob
MemberHey Tony. Thanks for the note; I talked this over with the devs, it looks like user levels (0-10) have been deprecated starting in WP 3.0 so that’s not a viable option. But you should check this out: http://codex.wordpress.org/Roles_and_Capabilities.
February 21, 2012 at 12:30 pm #15469Tony
MemberUnderstood, that said, which user capabilities are necessary in a given role for full editing functionality to be present in a user?
If it isnt the user level, then there must be a dependent capability, because the capabilities exist for super-admin but not for subscriber. I don’t mind creating a unique role for event administrators, but I thought I’d ask to shave some time on experimenting with different role capabilities to find the right combination(s).
February 22, 2012 at 7:35 pm #15514Rob
MemberAh, thanks for the follow-up. I’m not sure about this but have asked one of our devs to take a look and see if they can point you in the right direction here. Stay tuned.
February 22, 2012 at 7:44 pm #15516Joey Kudish
MemberHey Tony,
Our main plugin registers a number of new capabilities that are assigned to the administrator role. Here is the extract from our plugin’s code that does this: https://gist.github.com/1889879 so you can see here all of the caps that are used. In retrospect, we probably should assign some of those capabilities to other roles to more closely match the role/capability system of WordPress core (how authors can write content but not publish it), and that’s something we’ll look at in a future release. In the mean time, you’ll have to resort to either using the administrator role, or manually assigning the capabilities to other roles, either with code or via a plugin (here’s a good one: http://wordpress.org/extend/plugins/members/ – although it does more than just role management).
Hope that answers your questions.
February 22, 2012 at 7:58 pm #15521Tony
MemberHi Joey, Thanks a ton!
I will make the changes via the Members plugin and send you guys back some results in case the changes are needed for a workaround until you’ve integrated some capability options into the application.
I may not have said it literally, but as a suggestion, the ability to assign Publish/Edit/Delete/View permissions to a (queried) existing roles list (so that custom roles show up), would go a long way for people/devs using ecpro as a tiered cms.
Again, thanks a ton!
-Tony Hunt
February 22, 2012 at 8:00 pm #15522Joey Kudish
MemberHey Tony,
I am going to reverse everything I just said, and I apologize for the confusion; I myself wasn’t 100% sure on this one, but have now doen the proper research and can confirm my answer
We aren’t actually using those custom capabilities that I first mentioned, they are present in the codebase but will be removed in a future version as they are not used with the Events custom post type.
The events custom post type uses the exact same permissions as a regular post would within WordPress, so you should be looking at the list that Rob sent earlier: http://codex.wordpress.org/Roles_and_Capabilities. So for example you should look at edit_posts, publish_posts, edit_published_posts, etc…
Sorry about the confusion
JoeyFebruary 22, 2012 at 8:13 pm #15532Tony
MemberDoh! Okay I can still work with that, but my suggestion still applies 😉
-Tony
February 23, 2012 at 9:50 am #15562Rob
MemberThanks Tony. Does Joey’s note above help you out, or do you have other questions here? Noted re: your suggestion on the roles. We’re looking into that for the next (post-2.0.4) release.
February 24, 2012 at 9:45 am #15633Armando
ParticipantI was just trying to figure out why it was not working for me, because even though the tribe_ capabilities are there, they don’t take any effect.
Finding this is helpful, I agree with Tony’s suggestion.
Thanks!
February 24, 2012 at 12:36 pm #15668Rob
MemberThanks for the heads up, Armando – seems there is some interest in the route Tony suggested.
July 5, 2015 at 5:00 pm #975773Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Role-Based Access to Event Editing Creation’ is closed to new replies.
