Version Description
- Bug fix: Don't redirect logged-in users viewing the site in a single site install.
Download this release
Release Info
Developer | helen |
Plugin | Restricted Site Access |
Version | 6.2.1 |
Comparing to | |
See all releases |
Code changes from version 6.2.0 to 6.2.1
- readme.txt +6 -0
- restricted_site_access.php +4 -6
readme.txt
CHANGED
@@ -89,6 +89,9 @@ function my_rsa_user_can_access( $access ) {
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
92 |
= 6.2.0 =
|
93 |
* **Functionality change:** Check user's role on a site in multisite before granting permission.
|
94 |
* Feature: Alter or restore previous user permission checking with the `restricted_site_access_user_can_access` filter.
|
@@ -188,6 +191,9 @@ This update improves performance, refines the user interface, and adds support f
|
|
188 |
|
189 |
== Upgrade Notice ==
|
190 |
|
|
|
|
|
|
|
191 |
= 6.2.0 =
|
192 |
IMPORTANT MULTISITE FUNCTIONALITY CHANGE: User access is now checked against their role on a given site in multisite. To restore previous behavior, use the new restricted_site_access_user_can_access filter.
|
193 |
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
= 6.2.1 =
|
93 |
+
* Bug fix: Don't redirect logged-in users viewing the site in a single site install.
|
94 |
+
|
95 |
= 6.2.0 =
|
96 |
* **Functionality change:** Check user's role on a site in multisite before granting permission.
|
97 |
* Feature: Alter or restore previous user permission checking with the `restricted_site_access_user_can_access` filter.
|
191 |
|
192 |
== Upgrade Notice ==
|
193 |
|
194 |
+
= 6.2.1 =
|
195 |
+
IMPORTANT MULTISITE FUNCTIONALITY CHANGE: User access is now checked against their role on a given site in multisite. To restore previous behavior, use the new restricted_site_access_user_can_access filter.
|
196 |
+
|
197 |
= 6.2.0 =
|
198 |
IMPORTANT MULTISITE FUNCTIONALITY CHANGE: User access is now checked against their role on a given site in multisite. To restore previous behavior, use the new restricted_site_access_user_can_access filter.
|
199 |
|
restricted_site_access.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: Restricted Site Access
|
4 |
* Plugin URI: http://10up.com/plugins/restricted-site-access-wordpress/
|
5 |
* Description: <strong>Limit access your site</strong> to visitors who are logged in or accessing the site from a set of specific IP addresses. Send restricted visitors to the log in page, redirect them, or display a message or page. <strong>Powerful control over redirection</strong>, including <strong>SEO friendly redirect headers</strong>. Great solution for Extranets, publicly hosted Intranets, or parallel development sites.
|
6 |
-
* Version: 6.2.
|
7 |
* Author: Jake Goldman, 10up, Oomph
|
8 |
* Author URI: http://10up.com
|
9 |
* License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
-
define( 'RSA_VERSION', '6.2.
|
13 |
|
14 |
class Restricted_Site_Access {
|
15 |
|
@@ -236,10 +236,6 @@ class Restricted_Site_Access {
|
|
236 |
return $access;
|
237 |
}
|
238 |
|
239 |
-
if ( ! is_user_logged_in() ) {
|
240 |
-
return false;
|
241 |
-
}
|
242 |
-
|
243 |
if ( is_multisite() ) {
|
244 |
$user_id = get_current_user_id();
|
245 |
|
@@ -250,6 +246,8 @@ class Restricted_Site_Access {
|
|
250 |
if ( is_user_member_of_blog( $user_id ) && current_user_can( 'read' ) ) {
|
251 |
return true;
|
252 |
}
|
|
|
|
|
253 |
}
|
254 |
|
255 |
return false;
|
3 |
* Plugin Name: Restricted Site Access
|
4 |
* Plugin URI: http://10up.com/plugins/restricted-site-access-wordpress/
|
5 |
* Description: <strong>Limit access your site</strong> to visitors who are logged in or accessing the site from a set of specific IP addresses. Send restricted visitors to the log in page, redirect them, or display a message or page. <strong>Powerful control over redirection</strong>, including <strong>SEO friendly redirect headers</strong>. Great solution for Extranets, publicly hosted Intranets, or parallel development sites.
|
6 |
+
* Version: 6.2.1
|
7 |
* Author: Jake Goldman, 10up, Oomph
|
8 |
* Author URI: http://10up.com
|
9 |
* License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
+
define( 'RSA_VERSION', '6.2.1' );
|
13 |
|
14 |
class Restricted_Site_Access {
|
15 |
|
236 |
return $access;
|
237 |
}
|
238 |
|
|
|
|
|
|
|
|
|
239 |
if ( is_multisite() ) {
|
240 |
$user_id = get_current_user_id();
|
241 |
|
246 |
if ( is_user_member_of_blog( $user_id ) && current_user_can( 'read' ) ) {
|
247 |
return true;
|
248 |
}
|
249 |
+
} elseif ( is_user_logged_in() ) {
|
250 |
+
return true;
|
251 |
}
|
252 |
|
253 |
return false;
|