Don't let CUSTOMER4 users change their names through the web interface.

(imported from commit eafd4efa8a9614ffa3bdc7dd22088e091e1c54c3)
This commit is contained in:
Jessica McKellar 2013-08-04 20:29:01 -04:00
parent c95a762e2f
commit 666ce4333e
2 changed files with 10 additions and 1 deletions

View File

@ -21,6 +21,15 @@ function is_local_part(value, element) {
}
$(function () {
if (page_params.domain === "users.customer4.invalid") {
// At the request of the facilitators, CUSTOMER4 users
// can't change their names, so don't show that as a settings
// option. This is also disabled through the JSON UI. Once we
// have the infrastructure for administrative policies, we can
// handle this more gracefully.
$("#name_change_container").hide();
}
$.ajax({
type: 'POST',
url: '/json/get_bots',

View File

@ -12,7 +12,7 @@
<div id="settings-change-box">
<form action="/json/settings/change" method="post"
class="form-horizontal">{% csrf_token %}
<div class="control-group">
<div class="control-group" id="name_change_container">
<label for="full_name" class="control-label">Full name</label>
<div class="controls">
<input type="text" name="full_name" id="full_name"