Advanced Access Manager - Version 4.1.1

Version Description

  • Fixed bug with Post & Pages UI
  • Added ability to define default category for any role or user
Download this release

Release Info

Developer vasyl_m
Plugin Icon 128x128 Advanced Access Manager
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1 to 4.1.1

Application/Backend/Filter.php CHANGED
@@ -50,6 +50,9 @@ class AAM_Backend_Filter {
50
  add_filter('page_row_actions', array($this, 'postRowActions'), 10, 2);
51
  add_filter('post_row_actions', array($this, 'postRowActions'), 10, 2);
52
  add_action('admin_action_edit', array($this, 'adminActionEdit'));
 
 
 
53
 
54
  //wp die hook
55
  add_filter('wp_die_handler', array($this, 'backendDie'));
@@ -70,6 +73,32 @@ class AAM_Backend_Filter {
70
  add_filter('contextual_help', array($this, 'helpOptions'), 10, 3);
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  /**
74
  * Control Admin Area access
75
  *
@@ -146,7 +175,7 @@ class AAM_Backend_Filter {
146
  AAM::getUser()->getObject('metabox')->filterBackend($screen);
147
  }
148
  }
149
-
150
  /**
151
  * Post Quick Menu Actions Filtering
152
  *
@@ -399,7 +428,7 @@ class AAM_Backend_Filter {
399
  $allCaps = $this->restrictPostActions($allCaps, $metaCaps);
400
  }
401
  break;
402
-
403
  default:
404
  break;
405
  }
50
  add_filter('page_row_actions', array($this, 'postRowActions'), 10, 2);
51
  add_filter('post_row_actions', array($this, 'postRowActions'), 10, 2);
52
  add_action('admin_action_edit', array($this, 'adminActionEdit'));
53
+
54
+ //default category filder
55
+ add_filter('pre_option_default_category', array($this, 'defaultCategory'));
56
 
57
  //wp die hook
58
  add_filter('wp_die_handler', array($this, 'backendDie'));
73
  add_filter('contextual_help', array($this, 'helpOptions'), 10, 3);
74
  }
75
 
76
+ /**
77
+ *
78
+ * @staticvar type $default
79
+ * @param type $category
80
+ * @return type
81
+ */
82
+ public function defaultCategory($category) {
83
+ static $default = null;
84
+
85
+ if (is_null($default)) {
86
+ //check if user category is defined
87
+ $default = AAM_Core_Config::get(
88
+ 'default.category.user.' . get_current_user_id(), $default
89
+ );
90
+
91
+ if (is_null($default)) {
92
+ $roles = AAM::getUser()->roles;
93
+ $default = AAM_Core_Config::get(
94
+ 'default.category.role.' . array_shift($roles), false
95
+ );
96
+ }
97
+ }
98
+
99
+ return ($default ? $default : $category);
100
+ }
101
+
102
  /**
103
  * Control Admin Area access
104
  *
175
  AAM::getUser()->getObject('metabox')->filterBackend($screen);
176
  }
177
  }
178
+
179
  /**
180
  * Post Quick Menu Actions Filtering
181
  *
428
  $allCaps = $this->restrictPostActions($allCaps, $metaCaps);
429
  }
430
  break;
431
+
432
  default:
433
  break;
434
  }
Application/Core/Object/Post.php CHANGED
@@ -24,8 +24,6 @@ class AAM_Core_Object_Post extends AAM_Core_Object {
24
  */
25
  private $_post;
26
 
27
- private $_default = null;
28
-
29
  /**
30
  * Constructor
31
  *
24
  */
25
  private $_post;
26
 
 
 
27
  /**
28
  * Constructor
29
  *
aam.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  Plugin Name: Advanced Access Manager
5
  Description: Manage website access for any user, role or visitors
6
- Version: 4.1
7
  Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  Author URI: https://www.vasyltech.com
9
 
3
  /**
4
  Plugin Name: Advanced Access Manager
5
  Description: Manage website access for any user, role or visitors
6
+ Version: 4.1.1
7
  Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  Author URI: https://www.vasyltech.com
9
 
media/js/aam-ui.js CHANGED
@@ -1347,7 +1347,7 @@
1347
  success: function (response) {
1348
  //iterate through each property
1349
  for (var property in response.access) {
1350
- var checked = (response.access[property] ? 'text-danger icon-check' : 'text-muted icon-check-empty');
1351
  var checkbox = $('[data-property="' + property + '"]', container);
1352
 
1353
  if (checkbox.length) {
1347
  success: function (response) {
1348
  //iterate through each property
1349
  for (var property in response.access) {
1350
+ var checked = (parseInt(response.access[property]) ? 'text-danger icon-check' : 'text-muted icon-check-empty');
1351
  var checkbox = $('[data-property="' + property + '"]', container);
1352
 
1353
  if (checkbox.length) {
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Advanced Access Manager ===
2
  Contributors: vasyltech
3
- Tags: access, role, user, visitor, capability, page, post, permission, security, login redirect, brute force attack, double authentication, widget, membership
4
  Requires at least: 3.8
5
  Tested up to: 4.7.2
6
- Stable tag: 4.1
7
 
8
  Manage your website access and security for any user, role or visitors.
9
 
@@ -43,6 +43,10 @@ For more information about this feature check [How to manage access to WordPress
43
  Define custom access denied or login redirects for any user or group of users. Redirect
44
  user to any existing page, URL or specify your own PHP callback function to handle it.
45
 
 
 
 
 
46
  = Content Teaser =
47
  Create your own content teaser for any limited post, page or custom post type.
48
 
@@ -96,6 +100,10 @@ Check our [help page](https://aamplugin.com/help) to find out more about AAM.
96
 
97
  == Changelog ==
98
 
 
 
 
 
99
  = 4.1 =
100
  * Added AAM IP Check extension
101
  * Improved Content filter shortcode to allow other shortcodes inside
1
  === Advanced Access Manager ===
2
  Contributors: vasyltech
3
+ Tags: access, role, user, capability, page access, post access, security, login redirect, brute force attack, double authentication, membership, backend lockdown, wp-admin
4
  Requires at least: 3.8
5
  Tested up to: 4.7.2
6
+ Stable tag: 4.1.1
7
 
8
  Manage your website access and security for any user, role or visitors.
9
 
43
  Define custom access denied or login redirects for any user or group of users. Redirect
44
  user to any existing page, URL or specify your own PHP callback function to handle it.
45
 
46
+ = Backend Lockdown =
47
+ Restrict access to your website backend side for any user or role. For more information about this feature
48
+ refer to the [How to lockdown WordPress backend](https://aamplugin.com/help/how-to-lockdown-wordpress-backend)
49
+
50
  = Content Teaser =
51
  Create your own content teaser for any limited post, page or custom post type.
52
 
100
 
101
  == Changelog ==
102
 
103
+ = 4.1.1 =
104
+ * Fixed bug with Post & Pages UI
105
+ * Added ability to define default category for any role or user
106
+
107
  = 4.1 =
108
  * Added AAM IP Check extension
109
  * Improved Content filter shortcode to allow other shortcodes inside