• Resolved icepick8

    (@icepick8)


    Hi. Me again. ??

    Is there a way to prevent anyone (even logged in users) from deleting a marker on the map?

    I have a user registration plug in and with it I can control permissions. But even denying permission to delete OUM locations does nothing and users can still delete them.

    The granting or denying edit permissions work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hulivili

    (@hulivili)

    Are you tried to edit template file partial-map-add-location.php ?

    Delete or comment out row (make backup first!)

        <div id="oum_delete_location_btn"><span style="color: <?php echo $oum_ui_color; ?>"><?php echo __('Delete this location', 'open-user-map'); ?></span></div>

    You also do it after plugin update!

    Plugin Support Daniel

    (@danielschoenherr)

    Hi @icepick8 and @hulivili,

    I would recommend you to wait for the next update (1.4.4) where I’ve already implemented a function to restrict “Delete Location” button by “delete_oum-locations” capability.

    @hulivili Thanks for your support though

    Best regards,
    Daniel

    Thread Starter icepick8

    (@icepick8)

    Awesome thanks Daniel! I eagerly await the update. So far your plug in works so well I’m def going to go pro as soon as my website is fully going!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.