Plugin Directory

Changeset 3055591


Ignore:
Timestamp:
03/20/2024 07:46:49 PM (2 years ago)
Author:
seersco
Message:

change the role with capability in if condition.

Location:
seers-cookie-consent-banner-privacy-policy
Files:
176 added
4 edited

Legend:

Unmodified
Added
Removed
  • seers-cookie-consent-banner-privacy-policy/tags/Development Versions/readme.txt

    r3054408 r3055591  
    55Requires at least: 3.8 or higher
    66Tested up to: 6.4.3
    7 Stable tag: 8.1.2
     7Stable tag: 8.1.3
    88Requires PHP: 5.3.3
    99Author URL: https://seersco.com
    10 Plugin URL: https://seersco.com/wp-cookie-plugin
     10Plugin URL: https://seersco.com/plugins/wordpress-plugin-installation-of-seers-cookie-consent/
    1111Donate Link: https://seersco.com
    1212
     
    183183== Changelog ==
    184184
     185VERSION 8.1.3
     186• now using capablity of customize to allow your to update data ajax calls
     187
    185188VERSION 8.1.2
    186189• on ajax calls for administrator make sure logged in user is administrator
  • seers-cookie-consent-banner-privacy-policy/tags/Development Versions/seers-cookie-consent-banner-privacy-policy.php

    r3054408 r3055591  
    937937        {
    938938
    939             //if current user is not not administrator then do not do any thing
    940             if (!current_user_can( 'administrator' ))
     939            //if current user has capablity of customize then do not do any thing
     940            if (!current_user_can( 'customize' ))
    941941                return false;
    942942
     
    11461146        {
    11471147
    1148             //if current user is not not administrator then do not do any thing
    1149             if (!current_user_can( 'administrator' ))
     1148            //if current user has capablity of customize then do not do any thing
     1149            if (!current_user_can( 'customize' ))
    11501150                return false;
    11511151           
     
    21832183                    if (stripos($message, "Unauthenticated") !== false) {
    21842184                        update_option( 'SCCBPP_cookie_consent_showloginpopup', 'show' );
    2185                     } else if (current_user_can( 'administrator' )) {
     2185                    } else if (current_user_can( 'customize' )) {
    21862186                       
    21872187                        // now also get the changes of banners from seersco.com
  • seers-cookie-consent-banner-privacy-policy/trunk/readme.txt

    r3054408 r3055591  
    55Requires at least: 3.8 or higher
    66Tested up to: 6.4.3
    7 Stable tag: 8.1.2
     7Stable tag: 8.1.3
    88Requires PHP: 5.3.3
    99Author URL: https://seersco.com
    10 Plugin URL: https://seersco.com/wp-cookie-plugin
     10Plugin URL: https://seersco.com/plugins/wordpress-plugin-installation-of-seers-cookie-consent/
    1111Donate Link: https://seersco.com
    1212
     
    183183== Changelog ==
    184184
     185VERSION 8.1.3
     186• now using capablity of customize to allow your to update data ajax calls
     187
    185188VERSION 8.1.2
    186189• on ajax calls for administrator make sure logged in user is administrator
  • seers-cookie-consent-banner-privacy-policy/trunk/seers-cookie-consent-banner-privacy-policy.php

    r3054408 r3055591  
    937937        {
    938938
    939             //if current user is not not administrator then do not do any thing
    940             if (!current_user_can( 'administrator' ))
     939            //if current user has capablity of customize then do not do any thing
     940            if (!current_user_can( 'customize' ))
    941941                return false;
    942942
     
    11461146        {
    11471147
    1148             //if current user is not not administrator then do not do any thing
    1149             if (!current_user_can( 'administrator' ))
     1148            //if current user has capablity of customize then do not do any thing
     1149            if (!current_user_can( 'customize' ))
    11501150                return false;
    11511151           
     
    21832183                    if (stripos($message, "Unauthenticated") !== false) {
    21842184                        update_option( 'SCCBPP_cookie_consent_showloginpopup', 'show' );
    2185                     } else if (current_user_can( 'administrator' )) {
     2185                    } else if (current_user_can( 'customize' )) {
    21862186                       
    21872187                        // now also get the changes of banners from seersco.com
Note: See TracChangeset for help on using the changeset viewer.