Plugin Directory

Changeset 3386138


Ignore:
Timestamp:
10/29/2025 02:17:42 AM (5 months ago)
Author:
vasyltech
Message:

Official 7.0.10 release

Location:
advanced-access-manager
Files:
446 added
6 edited

Legend:

Unmodified
Added
Removed
  • advanced-access-manager/trunk/aam.php

    r3364011 r3386138  
    44 * Plugin Name: Advanced Access Manager
    55 * Description: Powerfully robust WordPress plugin designed to help you control every aspect of your website, your way.
    6  * Version: 7.0.9
     6 * Version: 7.0.10
    77 * Author: VasylTech LLC <support@aamplugin.com>
    88 * Author URI: https://aamportal.com
     
    285285    define('AAM_MEDIA', plugins_url('/media', __FILE__));
    286286    define('AAM_KEY', 'advanced-access-manager');
    287     define('AAM_VERSION', '7.0.9');
     287    define('AAM_VERSION', '7.0.10');
    288288    define('AAM_BASEDIR', __DIR__);
    289289
  • advanced-access-manager/trunk/application/Addon/Repository.php

    r3333169 r3386138  
    3232     * Note! This is the latest version at the time of AAM publishing
    3333     *
    34      * @version 7.0.6
     34     * @version 7.0.10
    3535     */
    36     const LATEST_PREMIUM_VERSION = '7.0.6';
     36    const LATEST_PREMIUM_VERSION = '7.0.7';
    3737
    3838    /**
  • advanced-access-manager/trunk/application/Framework/Service/Posts.php

    r3331817 r3386138  
    8686     * Determine if current post is password protected
    8787     *
    88      * @param mixed $post_identifier
    89      *
    90      * @return bool
    91      * @access public
    92      *
    93      * @version 7.0.0
     88     * It is important to note that if user has the ability to edit a post, it can't
     89     * be password protected
     90     *
     91     * @param mixed $post_identifier
     92     *
     93     * @return bool
     94     * @access public
     95     *
     96     * @version 7.0.10
    9497     */
    9598    public function is_password_protected($post_identifier)
     
    101104            $permission = $resource->get_permission($identifier, 'read');
    102105
    103             // First, let's check that current post does not have password set
    104             // natively
    105             $native_password = $identifier->post_password;
    106             $result          = !empty($native_password) ? true : null;
    107 
    108             if (is_null($result) && !is_null($permission)) {
    109                 if (!empty($permission['restriction_type'])) {
    110                     $restriction_type = $permission['restriction_type'];
    111                 } else {
    112                     $restriction_type = null;
    113                 }
    114 
    115                 if ($restriction_type === 'password_protected') {
    116                     $result = $permission['effect'] !== 'allow'
    117                         && !empty($permission['password']);
    118                 }
    119             }
    120 
    121             // Making sure that other implementations can affect the decision
    122             $result = apply_filters(
    123                 'aam_post_permission_result_filter',
    124                 $result,
    125                 $permission,
    126                 $identifier,
    127                 'read'
    128             );
     106            if (!current_user_can('edit_post', $identifier->ID)) {
     107                // First, let's check that current post does not have password set
     108                // natively
     109                $native_password = $identifier->post_password;
     110                $result          = !empty($native_password) ? true : null;
     111
     112                if (is_null($result) && !is_null($permission)) {
     113                    if (!empty($permission['restriction_type'])) {
     114                        $restriction_type = $permission['restriction_type'];
     115                    } else {
     116                        $restriction_type = null;
     117                    }
     118
     119                    if ($restriction_type === 'password_protected') {
     120                        $result = $permission['effect'] !== 'allow'
     121                            && !empty($permission['password']);
     122                    }
     123                }
     124
     125                // Making sure that other implementations can affect the decision
     126                $result = apply_filters(
     127                    'aam_post_permission_result_filter',
     128                    $result,
     129                    $permission,
     130                    $identifier,
     131                    'read'
     132                );
     133            }
    129134
    130135            // Prepare the final result
  • advanced-access-manager/trunk/application/Service/Content.php

    r3315883 r3386138  
    690690     * @access private
    691691     *
    692      * @version 7.0.0
     692     * @version 7.0.10
    693693     */
    694694    private function __map_post_type_caps(
     
    740740            case 'read_post':
    741741            case 'read_private_posts':
    742             case 'read':
    743742                $password = (isset($args[1]) ? $args[1] : null);
    744743                $caps     = $this->_map_read_post_caps($caps, $post->ID, $password);
  • advanced-access-manager/trunk/application/Service/Core.php

    r3315883 r3386138  
    6868     * @return void
    6969     *
    70      * @version 7.0.4
     70     * @version 7.0.10
    7171     */
    7272    protected function __construct()
     
    102102            $this->initialize_hooks();
    103103        }, PHP_INT_MAX);
     104
     105        if (is_multisite()) {
     106            // Control access controls & configurations sync
     107            $this->_control_multisite_settings_sync();
     108        }
    104109    }
    105110
  • advanced-access-manager/trunk/readme.txt

    r3364012 r3386138  
    44Requires at least: 5.8.0
    55Requires PHP: 5.6.0
    6 Tested up to: 6.8.2
    7 Stable tag: 7.0.9
     6Tested up to: 6.8.3
     7Stable tag: 7.0.10
    88
    99Your WordPress security starts within — with AAM. Take control of your WordPress website and solve security gaps today.
     
    6060
    6161== Changelog ==
     62
     63= 7.0.10 =
     64* Fixed: Permalink has empty href when post is password protected [https://github.com/aamplugin/advanced-access-manager/issues/487](https://github.com/aamplugin/advanced-access-manager/issues/487)
     65* Fixed: Roles & Capabilities are not syncing in multisite [https://github.com/aamplugin/advanced-access-manager/issues/485](https://github.com/aamplugin/advanced-access-manager/issues/485)
    6266
    6367= 7.0.9 =
Note: See TracChangeset for help on using the changeset viewer.