mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
add system accesslvl
adjust default config
This commit is contained in:
@@ -1458,10 +1458,12 @@ JSONEditor.AbstractEditor = Class.extend({
|
||||
this.register();
|
||||
this.onWatchedFieldChange();
|
||||
|
||||
//disable input field, if it didn't match the current access level
|
||||
//hide input field, if it didn't match the current access level
|
||||
var storedAccess = localStorage.getItem("accesslevel");
|
||||
|
||||
if(this.schema.access){
|
||||
if(this.schema.access == 'system')
|
||||
this.container.style.display = "none";
|
||||
if(this.schema.access == 'expert' && storedAccess != 'expert'){
|
||||
this.container.style.display = "none";
|
||||
//this.disable();
|
||||
|
Reference in New Issue
Block a user