• Resolved Greendroid

    (@greendroid)


    Hi,
    Is it somehow possible to hide everything related to the ICS-Calendar from the dashboard, etc… if the user is non-admin?
    Currently I am using the plugin “Members” to manage these visbility settings, but I cannot see anything related to ICS-Calendar?
    Thanks and kind regards
    Greendroid

Viewing 4 replies - 1 through 4 (of 4 total)
  • Is this for the free version of ICS Calendar or Pro? I’m not supposed to provide Pro support in these forums (and there’s nothing editable in the admin screens in the free version).

    Is the admin page showing for Subscriber-level users for you right now? Or are you intending to restrict this specifically to only Administrator-level users (i.e. not Editor, Author, etc.)?

    Thread Starter Greendroid

    (@greendroid)

    Hi,
    this is for the free-version and you are absolutely right. There is nothing editable in this menue. But I try to clean up the view for the authors and hide/remove everything which is not absolutely necessary for them.

    It is not showing for subscribers (but I have removed all rights for this role). It is showing for authors and contributors.
    I intend to remove the visibility for all non-administrator users.

    Thanks and kind regards
    Greendroid

    OK, thanks. I think in general (that is, not for you specifically, but for the “average” site) it makes sense to keep the access available to all users with any editing capabilities, although I may be convinced otherwise, or to add it as a configurable option.

    In the meantime, you should be able to remove it by adding this to your theme’s functions.php file:

    
    add_action('admin_menu', function() {
    	if (!current_user_can('manage_options')) {
    		remove_menu_page('ics-calendar');
    	}
    }, 11);
    
    Thread Starter Greendroid

    (@greendroid)

    Thanks, it is working perfectly fine 🙂
    Kind Regards
    Greendroid

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

The topic ‘Hide ICS-Calendar for non-admin users’ is closed to new replies.