GeoDirectory SupportPrevent 'authors' from deleting listings – GeoDirectory Support https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/feed Wed, 04 Feb 2026 16:44:00 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51636 <![CDATA[Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51636 Tue, 01 Sep 2015 22:24:04 +0000 Y A Hi,

When a user claims a listing, they get author privileges do that post, right?

I have tried changing author capabilities as such:


$role = get_role( 'author' );
$role->remove_cap( 'delete_posts' );
$role->remove_cap( 'delete_published_posts' );

I have checked to see that authors have indeed lost that capability, and everything is fine.
But, it seems that users (who are subscribers, by default) can still delete posts which they have claimed.

How can I prevent them from doing so?

]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51638 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51638 Tue, 01 Sep 2015 22:28:02 +0000 Guust Hide the “delete” link using CSS?

a.geodir-delete {display:none}
]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51639 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51639 Tue, 01 Sep 2015 22:32:42 +0000 Y A What if a sneaky user manually changes the CSS?

]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51658 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51658 Wed, 02 Sep 2015 09:27:21 +0000 Stiofan O'Connor This was discussed before and we decided if a user wants his data deleted then it should be permanently deleted, however given that they might claim a listing with the intention of just deleting it, i will add an option in the next ver to select if it gets totaly deleted or just sent to trash.

Thanks,

Stiofan

]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51664 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-51664 Wed, 02 Sep 2015 10:50:08 +0000 Y A Okay, thanks.
The reason I am looking for this is because someone might want to delete their listing if it has tons of negative reviews. For example, I doubt Yelp allows deleting listings (that would be unfair to the reviewers).

]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55563 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55563 Sat, 03 Oct 2015 04:26:48 +0000 macnikki I have the same concern. A user could end up with lots of negative reviews and they can just go in and delete their listing. Then they can immediately set up a new listing with all the same information on the same user account and none of the negative reviews are displayed.

In the short term I will hide the delete link with CSS but this is not a great long term solution.

Is it possible that a user can have their listing permanently disabled, so it cannot be seen, but all the listing information and reviews stay attached to it so if they ever try to set up a new user account with the same email address it will not let them, and if they reactivate their old listing the review data is still there?

Thanks, Nikki

]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55568 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55568 Sat, 03 Oct 2015 04:49:42 +0000 Guust Not sure about the privacy laws in your country, but usually people and businesses have the right not to be listed on somebody else’s website. If you do not remove details of people on request, I think you might have to deal with some abuse reports to your host in the future. Just a thought.

]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55570 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55570 Sat, 03 Oct 2015 05:19:14 +0000 macnikki I understand the issue with privacy laws and agree that everyone should have the right to delete their account. However, they should not have the option to open a new account with the same email address and use this as a way of getting rid of negative reviews. It might be possible for example to allow them to deactivate the account, delete all their data, but then block that email address from setting up a new account. I was able to create a listing, add a review from someone else, log back in and delete the account altogether, then immediately set up a new account using the same email address with none of the negative reviews showing. It makes it very very easy for people to just eliminate their bad reviews.

Other organizations (e.g. Trip Advisor and AirBNB) get around this by requiring anyone who has deleted their account to have to contact the organization to have their account reestablished. You can delete your account and all information is removed but you cannot create a new account using the same details so they must be storing the email addresses of closed accounts somewhere that then blocks them being reestablished.

]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55571 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55571 Sat, 03 Oct 2015 06:19:00 +0000 Stiofan O'Connor This is now an option under GD general settings.

]]>
https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55572 <![CDATA[Reply To: Prevent 'authors' from deleting listings]]> https://wpgeodirectory.com/support/topic/prevent-authors-from-deleting-listings/#post-55572 Sat, 03 Oct 2015 06:23:56 +0000 macnikki Thanks Stiofan – yes when I deleted the listing it did go to trash. But it did not stop me from immediately setting up a new listing with the same email address and then not showing any of those negative reviews as they were linked to the post in trash.

Nikki

]]>