Skip to content

Commit 65a7a82

Browse files
committed
1.3.6
1 parent c9bbd1c commit 65a7a82

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

disable-user-login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Disable User Login
44
* Plugin URI: http://wordpress.org/plugins/disable-user-login
55
* Description: Provides the ability to disable user accounts and prevent them from logging in.
6-
* Version: 1.3.5
6+
* Version: 1.3.6
77
*
88
* Author: Saint Systems
99
* Author URI: https://www.saintsystems.com

includes/class-ss-disable-user-login-plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class SS_Disable_User_Login_Plugin {
1515
*
1616
* @var string
1717
*/
18-
private static $version = '1.3.5';
18+
private static $version = '1.3.6';
1919

2020
/**
2121
* Plugin singleton instance
@@ -148,7 +148,7 @@ private function add_hooks() {
148148
*/
149149
function add_quick_links( $actions, $user_object ) {
150150

151-
if ( $user_object->ID !== get_current_user_id() ) {
151+
if ( $user_object->ID !== get_current_user_id() && current_user_can( $this->get_edit_cap() ) ) {
152152
$action = 'disable';
153153
$label = _x( 'Disable', 'user row action', 'disable-user-login' );
154154

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: users, user, login, account, disable
55
Requires at least: 4.7.0
66
Tested up to: 6.1.1
77
Requires PHP: 5.6
8-
Stable tag: 1.3.5
8+
Stable tag: 1.3.6
99
License: GPLv3
1010

1111
Provides the ability to disable user accounts and prevent them from logging in.
@@ -48,6 +48,10 @@ Yes, there is a filter in place for that, `disable_user_login.disabled_message`.
4848

4949
== Changelog ==
5050

51+
= 1.3.6 =
52+
* Permission fix on quick links.
53+
* Translation updates.
54+
5155
= 1.3.5 =
5256
* Fix to disable application passwords (fixes #7).
5357

0 commit comments

Comments
 (0)