Results 1 to 2 of 2

Thread: BUG - claimee can edit listing before claim is approved

  1. #1
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts

    BUG - claimee can edit listing before claim is approved

    Hi,

    If a person claims a listing via Vantage front end, they go through the process of selecting a plan etc. and reach the 'Order Complete' page, which has a link at the bottom for 'Continue to Listing'. If they click on this link they will see the listing, along with a link to 'Edit Listing' - even though their claim has not yet been approved!

    I have tested this and any changes made do actually get written to the database...so anyone can essentially screw up a listing by claiming it and then trashing it before the site owner has had time to approve or deny the claim. As most sites have a basic free listing, there isn't even a financial deterrent to stop malicious folks doing this...


    The problem is in this function:

    Code:
    function the_listing_edit_link( $listing_id = 0, $text = '' ) {
    	$listing_id = $listing_id ? $listing_id : get_the_ID();
    
    	if ( !current_user_can( 'edit_post', $listing_id ) )
    		return;
    
    	if( empty( $text ) )
    		$text = __( 'Edit Listing', APP_TD );
    
    	echo html( 'a', array(
    		'class' => 'listing-edit-link',
    		'href' => va_get_listing_edit_url( $listing_id ),
    	), $text );
    }
    The check for whether the edit listing link should appear need to also check whether the listing is currently being claimed....so the edit listing link should not be shown in the above situation...

    Now, just got to figure out how to add that check myself, as I don't have time to wait for a bug fix. Any clues gratefully received!

    red20

  2. #2
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Taxes do not work or claim listing update listing
    By mjsoto in forum Report Vantage Bugs (Legacy)
    Replies: 1
    Last Post: July 30th, 2013, 12:50 PM
  2. Samcy Edit Listing, claim Listing doenst work
    By seofoxx in forum Report Vantage Bugs (Legacy)
    Replies: 16
    Last Post: February 1st, 2013, 04:08 PM
  3. Claim this listing not showing up in quik edit
    By handmdmr in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: October 18th, 2012, 02:40 AM
  4. email to employer after listing has been approved
    By ukhousingjobs in forum Report JobRoller Bugs
    Replies: 1
    Last Post: May 26th, 2012, 05:49 PM
  5. Replies: 6
    Last Post: May 10th, 2012, 05:08 PM