Okay
  Public Ticket #2010017
Calendar view for non-admin users only shows their own events
Closed

Comments

  •  3
    Graeme started the conversation

    Hi, I want other people to edit, add and delete events from diary. As admin I see all events. I have tried using author access and above who can add events on a callendar (lower access) with users who have editor accounts, but they can only see events they create, they cannot edit or even view all events just their own events. How can this be changed to all events?


    Also the editing events via the live website, the edit button appears but does nothing. How can I get authorised users to edit events via live website and not login to wp-admin?

  •  877
    Zhivko replied

    Hi,

    Try changing the calendars setting "Who can add events from the front-end" to "Logged in users".

    The edit button should be working now. Most likely the permalinks weren't refreshed after the update.


    Stachethemes Developer

  •  3
    Graeme replied

    Update: Have changed "Who can add events from the front-end" to "Logged in users". So when I logged in as admin I can create events and edit events using the edit button. When I login as admin I can edit and create events, but I cannot delete events from the front-end web site diary.

    When I login as editor access, I cannot edit events, I can only create a new event. Also I can't edit, delete other existing events.

  •  3
    Graeme replied

    Also editors, when logging into wp-admin, only see events that they created, not all events.

  •  877
    Zhivko replied

    Hi,

    The visibility problem in the dashboard is a bug I've just fixed in the upcoming version as well on your server.

    The "is_user_admin" native method seems to not be working properly so I've written my own method to check if the permission check is for the admin area.

    The front-end edit is intended for users' own events only.

    This can be overriden by adding following filter in the theme functions.php file at the bottom:

    add_filter('stec_user_can_edit_event', function(){
        if (\Stachethemes\Stec\Admin_Helper::is_admin_menu()) {
            return null;
        }
        
        if (current_user_can('edit_posts')) {
            return true;
        }
        
        return null;
    });

    This filter will allow anyone who has permission to edit posts (has edit_posts user role) to be able to edit events from the front-end as well.

    At the moment there's no option to delete events from the front-end. We may add this in the next update.


    Stachethemes Developer