Revision: 1046
http://mrbs.svn.sourceforge.net/mrbs/?rev=1046&view=rev
Author: cimorrison
Date: 2009-03-11 17:08:44 +0000 (Wed, 11 Mar 2009)
Log Message:
-----------
Added a restriction that you cannot edit a username (even your own) unless you
are an admin with user editing rights.
Modified Paths:
--------------
mrbs/trunk/web/edit_users.php
Modified: mrbs/trunk/web/edit_users.php
===================================================================
--- mrbs/trunk/web/edit_users.php 2009-03-11 16:46:25 UTC (rev 1045)
+++ mrbs/trunk/web/edit_users.php 2009-03-11 17:08:44 UTC (rev 1046)
@@ -303,6 +303,16 @@
}
echo "</div>\n";
break;
+ case 'name':
+ // you cannot change a username (even your own) unless you
have user editing rights
+ $html_fieldname = htmlspecialchars("Field_$fieldname");
+ echo ("<div>\n");
+ echo ("<label for=\"$html_fieldname\">" .
get_loc_field_name($fieldname) . ":</label>\n");
+ echo ("<input id=\"$html_fieldname\" name=\"$html_fieldname\"
type=\"text\" " .
+ (($level < $min_user_editing_level) ?
"disabled=\"disabled\" " : "") .
+ "value=\"" . htmlspecialchars($data[$fieldname]) .
"\">\n");
+ echo ("</div>\n");
+ break;
default:
$html_fieldname = htmlspecialchars("Field_$fieldname");
echo ("<div>\n");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits