Skip to content

Commit 3f18b8c

Browse files
author
Kristan Kenney
committed
Add policy to allow users to update their name/contact info
1 parent 9329700 commit 3f18b8c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/v-list-sys-config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ json_list() {
7676
"API": "'$API'",
7777
"API_ALLOWED_IP": "'$API_ALLOWED_IP'",
7878
"RESTRICTED_ADMIN": "'$RESTRICTED_ADMIN'",
79-
"HIDE_ADMIN_ACCOUNT": "'$HIDE_ADMIN_ACCOUNT'"
79+
"HIDE_ADMIN_ACCOUNT": "'$HIDE_ADMIN_ACCOUNT'",
80+
"POLICY_USER_EDIT_DETAILS": "'$POLICY_USER_EDIT_DETAILS'"
8081
}
8182
}'
8283
}

web/templates/user/edit_user.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</tr>
7575
<tr>
7676
<td>
77-
<input type="text" size="20" class="vst-input" name="v_name" value="<?=htmlentities(trim($v_name, "'"))?>">
77+
<input type="text" size="20" class="vst-input" name="v_name" value="<?=htmlentities(trim($v_name, "'"))?>" <? if ($_SESSION['POLICY_USER_EDIT_DETAILS'] === 'no') { echo 'disabled'; }?>>
7878
</td>
7979
</tr>
8080
<tr>
@@ -84,7 +84,7 @@
8484
</tr>
8585
<tr>
8686
<td>
87-
<input type="text" size="20" class="vst-input" name="v_email" value="<?=htmlentities(trim($v_email, "'"))?>">
87+
<input type="text" size="20" class="vst-input" name="v_email" value="<?=htmlentities(trim($v_email, "'"))?>" <? if ($_SESSION['POLICY_USER_EDIT_DETAILS'] === 'no') { echo 'disabled'; }?>>
8888
</td>
8989
</tr>
9090
<tr>

0 commit comments

Comments
 (0)