luci-mod-system: password.js: make readonly on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
01129d5297
commit
d7a17641d3
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ return view.extend({
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
m = new form.JSONMap(formData, _('Router Password'), _('Changes the administrator password for accessing the device'));
|
m = new form.JSONMap(formData, _('Router Password'), _('Changes the administrator password for accessing the device'));
|
||||||
|
m.readonly = !L.hasViewPermission();
|
||||||
|
|
||||||
s = m.section(form.NamedSection, 'password', 'password');
|
s = m.section(form.NamedSection, 'password', 'password');
|
||||||
|
|
||||||
o = s.option(form.Value, 'pw1', _('Password'));
|
o = s.option(form.Value, 'pw1', _('Password'));
|
||||||
|
|
Loading…
Reference in a new issue