Version Description
- Fixed the bug with Access Policy for Capability resource
- Fixed the bug with Nginx redirect rules for media access
Download this release
Release Info
Developer | vasyltech |
Plugin | Advanced Access Manager |
Version | 5.9.7.1 |
Comparing to | |
See all releases |
Code changes from version 5.9.7 to 5.9.7.1
- aam.php +1 -1
- application/Core/Media.php +2 -2
- application/Core/Subject/User.php +2 -2
- application/Frontend/Authorization.php +1 -1
- readme.txt +6 -2
aam.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Plugin Name: Advanced Access Manager
|
5 |
* Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
|
6 |
-
* Version: 5.9.7
|
7 |
* Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
* Author URI: https://vasyltech.com
|
9 |
* Text Domain: advanced-access-manager
|
3 |
/**
|
4 |
* Plugin Name: Advanced Access Manager
|
5 |
* Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
|
6 |
+
* Version: 5.9.7.1
|
7 |
* Author: Vasyl Martyniuk <vasyl@vasyltech.com>
|
8 |
* Author URI: https://vasyltech.com
|
9 |
* Text Domain: advanced-access-manager
|
application/Core/Media.php
CHANGED
@@ -44,8 +44,8 @@ class AAM_Core_Media {
|
|
44 |
* @access protected
|
45 |
*/
|
46 |
protected function __construct() {
|
47 |
-
$media = filter_input(INPUT_GET, 'aam-media'
|
48 |
-
$request = ($media
|
49 |
$root = AAM_Core_Request::server('DOCUMENT_ROOT');
|
50 |
|
51 |
$this->request = str_replace('\\', '/', $root . $request);
|
44 |
* @access protected
|
45 |
*/
|
46 |
protected function __construct() {
|
47 |
+
$media = filter_input(INPUT_GET, 'aam-media');
|
48 |
+
$request = (is_numeric($media) ? urldecode(AAM_Core_Request::server('REQUEST_URI')) : $media);
|
49 |
$root = AAM_Core_Request::server('DOCUMENT_ROOT');
|
50 |
|
51 |
$this->request = str_replace('\\', '/', $root . $request);
|
application/Core/Subject/User.php
CHANGED
@@ -102,8 +102,8 @@ class AAM_Core_Subject_User extends AAM_Core_Subject {
|
|
102 |
// Retrieve all capabilities set in Access Policy
|
103 |
// Load Capabilities from the policy
|
104 |
$policyCaps = array();
|
105 |
-
|
106 |
-
foreach($manager->find("/^Capability:[\w]
|
107 |
$chunks = explode(':', $key);
|
108 |
$policyCaps[$chunks[1]] = ($stm['Effect'] === 'allow' ? 1 : 0);
|
109 |
}
|
102 |
// Retrieve all capabilities set in Access Policy
|
103 |
// Load Capabilities from the policy
|
104 |
$policyCaps = array();
|
105 |
+
|
106 |
+
foreach($manager->find("/^Capability:[\w]+$/i") as $key => $stm) {
|
107 |
$chunks = explode(':', $key);
|
108 |
$policyCaps[$chunks[1]] = ($stm['Effect'] === 'allow' ? 1 : 0);
|
109 |
}
|
application/Frontend/Authorization.php
CHANGED
@@ -75,7 +75,7 @@ class AAM_Frontend_Authorization {
|
|
75 |
$date = strtotime($post->get('frontend.expire_datetime'));
|
76 |
if ($date <= time()) {
|
77 |
$actions = AAM_Core_Config::get(
|
78 |
-
|
79 |
);
|
80 |
|
81 |
foreach(array_map('trim', explode(',', $actions)) as $action) {
|
75 |
$date = strtotime($post->get('frontend.expire_datetime'));
|
76 |
if ($date <= time()) {
|
77 |
$actions = AAM_Core_Config::get(
|
78 |
+
'feature.frontend.postAccess.expired', array('frontend.read')
|
79 |
);
|
80 |
|
81 |
foreach(array_map('trim', explode(',', $actions)) as $action) {
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: vasyltech
|
3 |
Tags: access control, membership, backend menu, user role, restricted content, security, jwt
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 5.2
|
6 |
-
Stable tag: 5.9.7
|
7 |
|
8 |
All you need to manage access to you WordPress websites on frontend, backend and API levels for any role, user or visitors.
|
9 |
|
@@ -80,6 +80,10 @@ https://www.youtube.com/watch?v=mj5Xa_Wc16Y
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
|
|
83 |
= 5.9.7 =
|
84 |
* Prep for upcoming AAM v6 release. Converting all extensions to plugins
|
85 |
* Covered odd use-case when some plugins decide to register CPT capabilities during plugin activation
|
2 |
Contributors: vasyltech
|
3 |
Tags: access control, membership, backend menu, user role, restricted content, security, jwt
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.2.1
|
6 |
+
Stable tag: 5.9.7.1
|
7 |
|
8 |
All you need to manage access to you WordPress websites on frontend, backend and API levels for any role, user or visitors.
|
9 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 5.9.7.1 =
|
84 |
+
* Fixed the bug with Access Policy for Capability resource
|
85 |
+
* Fixed the bug with Nginx redirect rules for media access
|
86 |
+
|
87 |
= 5.9.7 =
|
88 |
* Prep for upcoming AAM v6 release. Converting all extensions to plugins
|
89 |
* Covered odd use-case when some plugins decide to register CPT capabilities during plugin activation
|