Results 1 to 1 of 1

Thread: Suggested Code Change

  1. #1
    Affiliate Member AppThemes Affiliate jafo232's Avatar
    Join Date
    Mar 2011
    Location
    United States
    Posts
    17
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Suggested Code Change

    May I make a code change suggestion? In includes\view.php in the can_edit_ad() method you have:

    Code:
            if ( $post->post_author != $current_user->ID ))
                return self::redirect_dashboard( 'edit-invalid-author' );
    to:

    Code:
            if (!current_user_can('edit_post', $_GET['aid']))
                return self::redirect_dashboard( 'edit-invalid-author' );
    We had to do this so admins could edit the posts without going into the admincp where editing the fields is not as intuitive as the regular edit post page. This allows admins to access the same edit page as the normal user.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dimitris How to change the Coupon Code?
    By ebuddha in forum Help Using Clipper
    Replies: 12
    Last Post: April 24th, 2013, 05:15 AM
  2. [SOLVED] HELP!!!! Website Down!! I tried to change the code... PLEASE HELP!!
    By jyone in forum Help Using ClassiPress
    Replies: 10
    Last Post: March 18th, 2013, 12:43 AM
  3. Suggested VANTAGE - additional field.
    By brunoriggs in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: November 22nd, 2012, 05:01 AM
  4. Suggested Useful Features for Clipper
    By solomeng in forum Clipper General Discussion
    Replies: 2
    Last Post: August 11th, 2012, 03:43 AM