Title: PP Collaborative Editing Addon
Last modified: August 30, 2016

---

# PP Collaborative Editing Addon

 *  [tonykwon](https://wordpress.org/support/users/tonykwon/)
 * (@tonykwon)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/pp-collaborative-editing-addon/)
 * Hello,
 * Thank you for creating such a great plugin. I am just writing to inquire about
   act_check_ajax_referer function of PPCE_AdminHardway_Ltd class. I’ve noticed 
   that enabling this add on utilizes ‘check_ajax_refer’ hook to perform additional
   checks to ensure the current user has proper permission.
 *     ```
       // block term creation if selected parent is explicity blocked
       if ( $term_parent ) {
       	$user_terms = get_terms( $taxonomy, array( 'fields' => 'ids', 'hide_empty' => false, 'required_operation' => 'associate' ) );
       	if ( ! in_array( $term_parent, $user_terms ) )
       		die(-1);
       }
       ```
   
 * I am writing because even though I have properly setup roles and permissions,
   admin_ajax kept failing when I try to add a new custom taxonomy. After some debugging,
   I have traced the problem down to this line: ~ line 224
 * `if ( $term_parent ) {`
 * If a custom taxonomy parent is not set, this value is always -1 which will always
   hit die(-1);
 * I was wondering if it needs to read:
 * `if ( $term_parent > 0 ) {`
 * Thank you,
 * Regards.
 * [https://wordpress.org/plugins/press-permit-core/](https://wordpress.org/plugins/press-permit-core/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * (@kevinb)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/pp-collaborative-editing-addon/#post-6621245)
 * Please use your member login to submit questions about Pro extensions to the 
   support forums on the plugin site.

Viewing 1 replies (of 1 total)

The topic ‘PP Collaborative Editing Addon’ is closed to new replies.

 * ![](https://ps.w.org/press-permit-core/assets/icon-256x256.png?rev=3409953)
 * [PublishPress Permissions: Control User Access for Posts, Pages, Categories, Tags](https://wordpress.org/plugins/press-permit-core/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/press-permit-core/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/press-permit-core/)
 * [Active Topics](https://wordpress.org/support/plugin/press-permit-core/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/press-permit-core/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/press-permit-core/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kevin Behrens](https://wordpress.org/support/users/kevinb/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/pp-collaborative-editing-addon/#post-6621245)
 * Status: not a support question