• Resolved hidesignwp

    (@hidesignwp)


    I am using co-authors plus so that I can associate more than one user to an event. When I go in as the admin, I get the user dropdown where I can associate multiple users to my event. But when the team manager goes in, the user dropdown is not displayed. The team managr needs to be able to associate his coaches to the event (game) so they can update the score. It looks like the team manager should be able to do this. I don’t want have to give the league manager role to the team manager to do this.
    (I also went to class-sp-install.php to try to modify roles/capilitities but was not able to get the update to work)
    Thank you

    https://wordpress.org/plugins/sportspress/

Viewing 1 replies (of 1 total)
  • Plugin Author Brian

    (@brianmiyaji)

    @hidesignwp This is tricky because the User dropdown is essentially a post author override defined in WP core:

    if ( post_type_supports($post_type, 'author') ) {
    	if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) )
    		add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core');
    }

    The reason it’s not being displayed for Team Managers is that the role is not capable of editing other’s events. The only way to change this would be to allow Team Managers to edit events that other users have created, which would cause other issues, so the best solution I can offer (short of editing core) is to give that user a League Manager role.

Viewing 1 replies (of 1 total)

The topic ‘User Roles’ is closed to new replies.