Plugin Directory

Changeset 3123694


Ignore:
Timestamp:
07/23/2024 09:12:09 AM (20 months ago)
Author:
pieregister
Message:

3.8.3.6

Location:
pie-register/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pie-register/trunk/menus/PieRegRegistrationForm.php

    r2836644 r3123694  
    103103      </div>
    104104      <?php
    105       if( current_user_can( 'administrator' ) ){
     105      if( current_user_can( 'piereg_manage_cap' ) ){
    106106      do_action( 'admin_notices_specific_pages');   
    107107      }
  • pie-register/trunk/pie-register.php

    r3116424 r3123694  
    55Plugin URI: https://pieregister.com/
    66Description: Create custom user registration forms, drag & drop form builder, send invitation codes, add conditional logic, 2-step authentication, assign user roles, accept payments and more!
    7 Version: 3.8.3.5
     7Version: 3.8.3.6
    88Author: Pie Register
    99Author URI: https://pieregister.com/
     
    205205            # Change User Avatar With Pie Profile Picture, If Used:
    206206            add_filter( 'get_avatar' , array($this,'pie_user_avatar') , 1 , 5 );
    207             if( !is_admin() && (is_user_logged_in() && !current_user_can('administrator') ) )
     207            if( !is_admin() && (is_user_logged_in() && !current_user_can('piereg_manage_cap') ) )
    208208            {
    209209                //add_filter( 'get_avatar' , array($this,'pie_user_avatar') , 1 , 5 );
    210210            }
    211211           
    212             if( is_admin() && current_user_can('administrator') )
     212            if( is_admin() && current_user_can('piereg_manage_cap') )
    213213            {
    214214                add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1000 );
     
    235235            //add_filter( 'wp_privacy_personal_data_exporters', array($this, 'register_my_plugin_exporter'), 10);
    236236                       
    237             if( current_user_can( 'administrator' ) && $this->show_notice_premium_users ){
     237            if( current_user_can( 'piereg_manage_cap' ) && $this->show_notice_premium_users ){
    238238                #Pro Version Release notices
    239239                add_action( 'admin_notices', array( $this, 'pie_free_notice_to_premium_users' ), 1 );
     
    766766            }
    767767
    768             // Check for permissions.
    769             if ( ! current_user_can( 'deactivate_plugins' ) ) {
     768            // Check for permissions of activate/deactivate.
     769            if ( ! current_user_can( 'activate_plugins' ) ) {
    770770                wp_send_json_error( esc_html__( 'Plugin deactivation is disabled for you on this site.', 'pie-register' ) );
    771771            }
     
    34363436            $access = false;
    34373437
    3438             if ( is_user_logged_in() && current_user_can( 'administrator' ) ) {
     3438            if ( is_user_logged_in() && current_user_can( 'piereg_manage_cap' ) ) {
    34393439                $access = true;
    34403440            }
     
    74467446                }
    74477447            }
    7448             elseif( isset($_GET['redirect_to']) && $_GET['redirect_to'] != "" && !current_user_can( 'administrator' ) ){
     7448            elseif( isset($_GET['redirect_to']) && $_GET['redirect_to'] != "" && !current_user_can( 'piereg_manage_cap' ) ){
    74497449                // When account login with activation link and not any login page assigned
    74507450                if( (isset($_GET['action']) && $_GET['action'] == "activate") && (isset($_GET['activation_key']) && $_GET['activation_key'] != "") ) {
  • pie-register/trunk/readme.txt

    r3116424 r3123694  
    66Tested up to: 6.5
    77Requires PHP: 5.6
    8 Stable tag: 3.8.3.5
     8Stable tag: 3.8.3.6
    99License: GNU Version 2 or Any Later Version
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    232232
    233233== CHANGELOG ==
     234
     235### 3.8.3.6
     236
     237*Released Date 23th July 2024*
     238
     239* Fixed: Security vulnerability issues.
     240* Added: Capability checks.
     241
    234242### 3.8.3.5
    235243
Note: See TracChangeset for help on using the changeset viewer.