Skip to content

Commit

Permalink
Merge pull request #7 from katzwebservices/fix-useredit-link
Browse files Browse the repository at this point in the history
ticket 635, version 3.5.4.1
  • Loading branch information
zackkatz committed Mar 10, 2014
2 parents a2151a8 + d7d56af commit 5a75526
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion trunk/change-lead-creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
6 changes: 3 additions & 3 deletions trunk/gravity-forms-addons.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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()) {
Expand Down Expand Up @@ -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
) {

Expand Down
8 changes: 7 additions & 1 deletion trunk/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Tags: gravity forms, gravity form, forms, gravity, form, crm, directory, business, business directory, list, listings, sort, submissions, table, tables, member, contact, contacts, directorypress, business directory, directory plugin, wordpress directory, classifieds, captcha, cforms, contact, contact form, contact form 7, contact forms, CRM, email, enhanced wp contact form, feedback, form, forms, gravity, gravity form, gravity forms, secure form, simplemodal contact form, wp contact form, widget
Requires at least: 3.3
Tested up to: 3.8
Stable tag: trunk
Stable tag: 3.5.4.1
Contributors: katzwebdesign, katzwebservices
License: GPLv2 or later
Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=zackkatz%40gmail%2ecom&item_name=Gravity%20Forms%20Addons&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
Expand Down Expand Up @@ -216,6 +216,9 @@ To fix this issue, add this to your theme's `functions.php` file:

== Changelog ==

= 3.5.4.1 (March 8, 2014) =
* Small fix on showing the edit entry link for own user entries

= 3.5.4 (January 23, 2014) =
* Separated Change Entry Creator functionality into a separate, packaged plugin. This will allow you to enable or disable the functionality as you would a plugin.
* Added a new filter (`kws_gf_entry_creator_users`) for the Change Entry Creator plugin. This allows you to define what users appear in the dropdown (as an array of `WP_User` objects). If no users are specified, all users are shown.
Expand Down Expand Up @@ -461,6 +464,9 @@ Note: This update has only been tested with WordPress 3.2 and Gravity Forms 1.5.

== Upgrade Notice ==

= 3.5.4.1 (March 8, 2014) =
* Small fix on showing the edit entry link for own user entries

= 3.5.4 (January 23, 2014) =
* Separated Change Entry Creator functionality into a separate, packaged plugin. This will allow you to enable or disable the functionality as you would a plugin.
* Added a new filter (`kws_gf_entry_creator_users`) for the Change Entry Creator plugin. This allows you to define what users appear in the dropdown (as an array of `WP_User` objects). If no users are specified, all users are shown.
Expand Down

0 comments on commit 5a75526

Please sign in to comment.