Changeset:
        1276d8cdbfd1
        
https://sourceforge.net/p/mrbs/hg-code/ci/1276d8cdbfd1599516974534a33e69a40be3d430
Author:
        Campbell Morrison <[email protected]>
Date:
        Fri Oct 28 11:12:56 2016 +0100
Log message:

Updated details of WordPress authentication

diffstat:

 AUTHENTICATION |  18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 5ded93a54840 -r 1276d8cdbfd1 AUTHENTICATION
--- a/AUTHENTICATION    Fri Oct 28 11:11:07 2016 +0100
+++ b/AUTHENTICATION    Fri Oct 28 11:12:56 2016 +0100
@@ -848,11 +848,19 @@
 $auth['session'] = 'wordpress';
 $auth['type'] = 'wordpress';
 $auth['wordpress']['rel_path'] = '..';   // Path to the WordPress installation 
relative to MRBS.
-// List of WordPress roles that have MRBS Admin capabilities.  The default is 
'Administrator'. 
-// However you can define more than one WordPress role that maps to the MRBS 
Admin role by using
-// an array.   The example below assumes that you have created a new WordPress 
role called "MRBS Admin"
-// (probably by using a WordPress plugin) and assigned that role to those 
users that you want to be MRBS admins.
-$auth['wordpress']['admin_roles'] = 'Administrator';  // can also be an array, 
eg = array('Administrator', 'MRBS Admin');
+// List of WordPress roles that have MRBS Admin capabilities.  The default is 
'administrator'.
+// Note that these role names are the keys used to store the name, which are 
typically in lower case
+// English, eg 'administrator', and not the values which are displayed on the 
dashboard form, which will
+// generally start with a capital and be translated, eg 'Administrator' or 
'Administrateur' (French),
+// depending on the site language you have chosen for WordPress.
+// You can define more than one WordPress role that maps to the MRBS Admin 
role by using
+// an array.   The comment below assumes that you have created a new WordPress 
role (probably by using
+// a WordPress plugin) called "MRBS Admin", which will typically (depending on 
the plugin) have a key of
+// 'mrbs_admin', and that you assigned that role to those users that you want 
to be MRBS admins.
+$auth['wordpress']['admin_roles'] = 'administrator';  // can also be an array, 
eg = array('administrator', 'mrbs_admin');
+// List of WordPress roles that have MRBS User capabilities.  This allows you 
to have some WordPress users
+// who are authorised to use MRBS and some who are not. 
+$auth['wordpress']['user_roles'] = array('subscriber', 'contributor', 
'author', 'editor', 'administrator');
 
 Then in your WordPress wp-config.php file set:
 

------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to