Role-Based Access to Event Editing Creation

Home Forums Calendar Products Events Calendar PRO Role-Based Access to Event Editing Creation

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #15438
    Tony
    Member

    Question: 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?

    #15463
    Rob
    Member

    Hey 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.

    #15469
    Tony
    Member

    Understood, 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).

    #15514
    Rob
    Member

    Ah, 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.

    #15516
    Joey Kudish
    Member

    Hey 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.

    #15521
    Tony
    Member

    Hi 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

    #15522
    Joey Kudish
    Member

    Hey 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
    Joey

    #15532
    Tony
    Member

    Doh! Okay I can still work with that, but my suggestion still applies 😉

    -Tony

    #15562
    Rob
    Member

    Thanks 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.

    #15633
    Armando
    Participant

    I 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!

    #15668
    Rob
    Member

    Thanks for the heads up, Armando – seems there is some interest in the route Tony suggested.

    #975773
    Support Droid
    Keymaster

    This 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.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Role-Based Access to Event Editing Creation’ is closed to new replies.