bugfix permissions
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
{{#each items}}
|
||||
{{#ifSingle this.menu.items}}
|
||||
{{#if this.authorized}}
|
||||
<li class="start-item {{#unless ../this.active}}unload{{/unless}}" data-active="{{#equaler ../this.active "&&" this.authorized}}true{{else}}false{{/equaler}}" data-appname="{{../this.name}}" data-appview="{{this.view}}" data-viewlabel="{{this.label}}">
|
||||
<li class="start-item {{#unless ../this.active}}unload{{/unless}}" {{#if ../this.description}}data-tooltip="{{../this.description}}"{{/if}} data-active="{{#equaler ../this.active "&&" this.authorized}}true{{else}}false{{/equaler}}" data-appname="{{../this.name}}" data-appview="{{this.view}}" data-viewlabel="{{this.label}}">
|
||||
{{#if this.icon}}
|
||||
<img src="{{#if ../this.pluginPath}}/{{../this.name}}{{/if}}/images/{{this.icon}}" class="start-icon" />
|
||||
{{else}}
|
||||
@@ -47,7 +47,7 @@
|
||||
{{else}}
|
||||
<li class="start-item has-submenu">
|
||||
<img src="{{#if ../this.pluginPath}}/{{../this.name}}{{/if}}/images/folder.png" class="start-icon" style="position:absolute;left:12px;"/>
|
||||
<span class="menu-label">{{this.menu.label}}</span>
|
||||
<span {{#if this.description}}data-tooltip="{{this.description}}"{{/if}} class="menu-label">{{this.menu.label}}</span>
|
||||
{{!-- {{#if this.version}}<small>v{{this.version}}</small>{{/if}} --}}
|
||||
|
||||
<ul class="submenu">
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
|
||||
<script>
|
||||
fetch('/api/getConfig', { method: 'POST' })
|
||||
fetch('/api/config/get', { method: 'POST' })
|
||||
.then(res => res.json())
|
||||
.then(json => {
|
||||
const tree = createJsonTree({
|
||||
@@ -24,7 +24,7 @@
|
||||
expandInitially: true,
|
||||
onSave: json => {
|
||||
console.log(JSON.stringify(tree.getChanges()));
|
||||
fetch('/config', {
|
||||
fetch('/api/config/save', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(tree.getChanges(), null, 2)
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
fetch('/api/getServerInfo', { method: 'POST' })
|
||||
fetch('/api/serverInfo/get', { method: 'POST' })
|
||||
.then(res => res.json())
|
||||
.then(json => {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
fetch('/api/getStyles', { method: 'POST' })
|
||||
fetch('/api/styles/get', { method: 'POST' })
|
||||
.then(res => res.json())
|
||||
.then(json => {
|
||||
const tree = createJsonTree({
|
||||
@@ -18,7 +18,7 @@
|
||||
data: json,
|
||||
expandInitially: true,
|
||||
onSave: json => {
|
||||
fetch('/style', {
|
||||
fetch('/api/styles/save', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(tree.getChanges(), null, 2)
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Role Based Access Control</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container static" style="height: 100vh;">
|
||||
<div class="card static" style="overflow-y:auto;flex: 1 1 auto;" >
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user