diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-08 20:02:52 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-08 20:02:52 +0100 |
commit | acdbc686630f523cee598a95415b515d531b2bde (patch) | |
tree | 6c7f8760f21c046119cbe8b019a704825a2cf09c /app | |
parent | 7de50d7cc8722d229564488152bfb242adc2c80c (diff) | |
download | wcms-acdbc686630f523cee598a95415b515d531b2bde.tar.gz wcms-acdbc686630f523cee598a95415b515d531b2bde.zip |
multi edit
Diffstat (limited to 'app')
-rw-r--r-- | app/class/controllerconnect.php | 3 | ||||
-rw-r--r-- | app/class/controlleruser.php | 2 | ||||
-rw-r--r-- | app/view/templates/edithelp.php | 2 | ||||
-rw-r--r-- | app/view/templates/media.php | 2 |
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') { ?> |