From 3262c122531feee1c1618f25ee3110735aa071f1 Mon Sep 17 00:00:00 2001 From: ueickmann <45387393+ueickmann@users.noreply.github.com> Date: Fri, 14 Aug 2020 08:00:14 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4198522..fc46f7c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ YOURLS-AuthMgrPlus ===================== -This plugin manages essential YOURLS funtions and seperates user data with role-based access controls (RBAC). With access controls enabled, you can safely delegate access to the admin pages and API while keeping link data private. You share an installation, log on, add a link, and nobody else sees it. +This plugin manages essential YOURLS functions and separates user data with role-based access controls (RBAC). With access controls enabled, you can safely delegate access to the admin pages and API while keeping link data private. You share an installation, log on, add a link, and nobody else sees it. Features -------- @@ -17,13 +17,13 @@ Features Requirements ------------ - YOURLS 1.7.3 + -- Incompatable Plugins: +- Incompatible Plugins: - nicwaller's [`authmgr`](https://github.com/nicwaller/yourls-authmgr-plugin) - Ian Barber's [`Seperate Users`](https://github.com/ianbarber/Yourls-Separate-Users) Installation ------------ -1. Download the [latest release](https://github.com/joshp23/YOURLS-AuthMgrPlus) of ythis plugin. +1. Download the [latest release](https://github.com/joshp23/YOURLS-AuthMgrPlus) of this plugin. 1. Copy the `authMgrPlus` folder into your `user/plugins` folder for YOURLS. 1. Set up some parameters for authMgrPlus (details below) 1. Activate the plugin with the plugin manager in the YOURLS admin interface. @@ -80,7 +80,7 @@ $amp_default_role = "Editor"; #### NOTE: -This is a fork of nicwaller's [Authmgr](https://github.com/nicwaller/yourls-authmgr-plugin) merged with Ian barber's[Seperate User's](https://github.com/joshp23/Yourls-Separate-Users) plugin. Both code bases underwent heavy rewrites, and have been extensively updated and tightly integrated here, resulting in a lean and highly functional user authorization management environment. +This is a fork of nicwaller's [Authmgr](https://github.com/nicwaller/yourls-authmgr-plugin) merged with Ian barber's [Separate Users](https://github.com/joshp23/Yourls-Separate-Users) plugin. Both code bases underwent heavy rewrites, and have been extensively updated and tightly integrated here, resulting in a lean and highly functional user authorization management environment. ### Support Dev All of my published code is developed and maintained in spare time, if you would like to support development of this, or any of my published code, I have set up a Liberpay account for just this purpose. Thank you. From 110fc6e680c29d49b1af7502749f95cbf8100797 Mon Sep 17 00:00:00 2001 From: Ulrich Date: Fri, 14 Aug 2020 15:00:29 +0200 Subject: [PATCH 2/2] Update plugin.php Removed semicolon according to issue #24 "Editor can delete other users links (including admin's)" --- authMgrPlus/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authMgrPlus/plugin.php b/authMgrPlus/plugin.php index 225d6e8..04863c8 100644 --- a/authMgrPlus/plugin.php +++ b/authMgrPlus/plugin.php @@ -527,7 +527,7 @@ function amp_manage_keyword( $keyword, $capability ) { $user = YOURLS_USER !== false ? YOURLS_USER : NULL; if ( amp_have_capability( ampCap::ManageUsrsURL ) // Admin? || ( $owner === NULL && amp_have_capability( ampCap::ManageAnonURL ) ) // Editor? - || ( $owner === $user && amp_have_capability( $capability ) ) ); // Self Edit? + || ( $owner === $user && amp_have_capability( $capability ) ) ) // Self Edit? $return = true; } return $return;