Revision: 1919
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1919&view=rev
Author:   cimorrison
Date:     2011-09-01 14:18:50 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
Introduced a new config variable, $min_user_viewing_level, to allow 
discrimination between the right to view other users' details and the right to 
edit others' details.

Modified Paths:
--------------
    mrbs/branches/datatables/web/edit_users.php
    mrbs/branches/datatables/web/systemdefaults.inc.php

Modified: mrbs/branches/datatables/web/edit_users.php
===================================================================
--- mrbs/branches/datatables/web/edit_users.php 2011-09-01 08:42:16 UTC (rev 
1918)
+++ mrbs/branches/datatables/web/edit_users.php 2011-09-01 14:18:50 UTC (rev 
1919)
@@ -773,7 +773,7 @@
     // Check whether ordinary users are allowed to see other users' details.  
If not,
     // then skip past this row if it's not the current user or the user is not 
an admin
     if ($auth['only_admin_can_see_other_users'] &&
-        ($level < $min_user_editing_level) &&
+        ($level < $min_user_viewing_level) &&
         (strcasecmp($row['name'], $user) != 0))
     {
       continue;

Modified: mrbs/branches/datatables/web/systemdefaults.inc.php
===================================================================
--- mrbs/branches/datatables/web/systemdefaults.inc.php 2011-09-01 08:42:16 UTC 
(rev 1918)
+++ mrbs/branches/datatables/web/systemdefaults.inc.php 2011-09-01 14:18:50 UTC 
(rev 1919)
@@ -570,6 +570,8 @@
 // different levels of admin
 $max_level = 2;
 // The lowest level of admin allowed to edit other users
+$min_user_viewing_level = 2;
+// The lowest level of admin allowed to edit other users
 $min_user_editing_level = 2;
 
 // Password policy.  Uncomment the variables and set them to the

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to