• Resolved peter8nss

    (@peter8nss)


    The recently added Calendar Embed functionality adds a “Calendar Embeds” sub-menu item to the Events Admin menu. It appears the capability used to determine whether that sub-menu item is shown, and the capabilities required to view/create a Calendar Embed, are not aligned.

    Specifically:

    • The capability required for this sub-menu to be displayed is “edit_published_tribe_events” (see TEC\Events\Calendar_Embeds\Admin\List_Page register_menu_item function);
    • The capability_type for the calendar embeds post type is “post” (see TEC\Events\Calendar_Embeds\Calendar_Embeds register_post_type function).

    Furthermore, the capability_type or capabilities for the Calendar Embed post type (tec_calendar_embed) might be modified for example by the “tec_events_calendar_embeds_post_type_args” filter.

    It would be better if the capability to display the Admin sub-menu item was based on the configured capabilities at the time, e.g. amend the register_menu_item function roughly as follows

    $post_type_object = get_post_type_object( Calendar_Embeds::POSTTYPE );
    ...
    'capability' => $post_type_object->cap->edit_published_posts,
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darian

    (@d0153)

    Hi @peter8nss

    Thank you so much for reaching out and sharing your feedback!

    I truly appreciate you taking the time to bring this to our attention. I’ve gone ahead and created an internal ticket for this issue so our team can thoroughly review it and apply any necessary improvements in future updates.

    Your input is incredibly valuable to us, and we’re grateful for your patience and support.

    Plugin Support Darian

    (@d0153)

    Hi @peter8nss

    We prioritize bugs by taking into consideration the number of users impacted as well as how the bug impacts one’s ability to run an event/sell tickets. I don’t have a specific timeline as to when this issue will be resolved, but trust that our team is aware. Our team communicates updates and bug fixes in our newsletter and via our changelog. We’ll also update you through this thread once the fix is out.

    I’m happy to help if any other questions are coming up around this topic, otherwise I’ll go ahead and close this ticket for now.


    Internal Bug Ticket Reference: TECTRIA-907

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Calendar Embeds capabilities mismatch’ is closed to new replies.