From 496fbf6d4098abebba063071064f98edce386f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 23 Jun 2020 11:23:10 +0200 Subject: [PATCH] Document "add_default_role" --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 68d8555..4198522 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,12 @@ $amp_allowed_plugin_pages = array( ``` Explore the code to see how to set `$amp_role_capabilities` and `$amp_anon_capabilities`. These are set to defaults in the `amp_env_check()` function. +You can also assign a default role to all logged-in users that have no explicit role: +``` +$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.