aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/class/controllerconnect.php3
-rw-r--r--app/class/controlleruser.php2
-rw-r--r--app/view/templates/edithelp.php2
-rw-r--r--app/view/templates/media.php2
4 files changed, 6 insertions, 3 deletions
diff --git a/app/class/controllerconnect.php b/app/class/controllerconnect.php
index 355de1d..2e3f976 100644
--- a/app/class/controllerconnect.php
+++ b/app/class/controllerconnect.php
@@ -36,6 +36,9 @@ class Controllerconnect extends Controller
$this->user = $this->usermanager->login($_POST['pass']);
if($this->user != false) {
$this->usermanager->writesession($this->user);
+ $_SESSION['workspace']['showleftpanel'] = true;
+ $_SESSION['workspace']['showrightpanel'] = false;
+
}
}
if (!empty($id)) {
diff --git a/app/class/controlleruser.php b/app/class/controlleruser.php
index 495fab5..2b32993 100644
--- a/app/class/controlleruser.php
+++ b/app/class/controlleruser.php
@@ -66,7 +66,7 @@ class Controlleruser extends Controller
$this->routedirectget('user', ['error' => 'change_password']);
} elseif (empty($userupdate->level())) {
$this->routedirectget('user', ['error' => 'wrong_level']);
- } elseif ($user->level() === 10 && $userupdate->level() !== 10) {
+ } elseif ($user->level() === 10 && $userupdate->level() !== 10 && $this->user->id() === $user->id()) {
$this->routedirectget('user', ['error' => 'cant_edit_yourself']);
} else {
$this->usermanager->add($userupdate);
diff --git a/app/view/templates/edithelp.php b/app/view/templates/edithelp.php
index ff0ade5..8f52fe2 100644
--- a/app/view/templates/edithelp.php
+++ b/app/view/templates/edithelp.php
@@ -1,6 +1,6 @@
<h4>update shortcut</h4>
- <kbd>ALT</kbd> + <kbd>X</kbd>
+ <kbd>CTRL</kbd> + <kbd>S</kbd>
<h4>Synthax</h4>
<p>
📏<a href="https://daringfireball.net/projects/markdown/syntax" target="_blank">Markdown encoding</a>
diff --git a/app/view/templates/media.php b/app/view/templates/media.php
index 613efd1..1b63b16 100644
--- a/app/view/templates/media.php
+++ b/app/view/templates/media.php
@@ -85,7 +85,7 @@ foreach ($medialist as $media) {
<td><?= $media->width() ?></td>
<td><?= $media->height() ?></td>
<td><?= $media->length() ?></td>
- <td><code>
+ <td class="code"><code>
<?php
if($media->type() == 'image') {
?>