-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from katzwebservices/fix-useredit-link
ticket 635, version 3.5.4.1
- Loading branch information
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Plugin URI: http://katz.co/gravity-forms-addons/ | ||
Description: This simple addon allows users with Entry-editing capabilities to change who a <a href="http://katz.si/gravityforms" rel="nofollow">Gravity Forms</a> lead is assigned to. | ||
Author: Katz Web Services, Inc. | ||
Version: 3.5.4 | ||
Version: 3.5.4.1 | ||
Author URI: http://www.katzwebservices.com | ||
Copyright 2014 Katz Web Services, Inc. (email: [email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Plugin URI: http://katz.co/gravity-forms-addons/ | ||
Description: Turn <a href="http://katz.si/gravityforms" rel="nofollow">Gravity Forms</a> into a great WordPress directory...and more! | ||
Author: Katz Web Services, Inc. | ||
Version: 3.5.4 | ||
Version: 3.5.4.1 | ||
Author URI: http://www.katzwebservices.com | ||
Copyright 2014 Katz Web Services, Inc. (email: [email protected]) | ||
|
@@ -32,7 +32,7 @@ class GFDirectory { | |
|
||
private static $path = "gravity-forms-addons/gravity-forms-addons.php"; | ||
private static $slug = "gravity-forms-addons"; | ||
private static $version = "3.5.4"; | ||
private static $version = "3.5.4.1"; | ||
private static $min_gravityforms_version = "1.5"; | ||
|
||
public static function directory_defaults($args = array()) { | ||
|
@@ -829,7 +829,7 @@ static public function lead_detail($Form, $lead, $allow_display_empty_fields=fal | |
|
||
// Edit link | ||
if( | ||
!empty($options['useredit']) && is_user_logged_in() && $current_user->ID === $lead['created_by'] || // Is user who created the entry | ||
!empty($options['useredit']) && is_user_logged_in() && intval( $current_user->ID ) === intval( $lead['created_by'] ) || // Is user who created the entry | ||
!empty($options['adminedit']) && self::has_access("gravityforms_directory") // Or is an administrator | ||
) { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters