From 706b15d401ef07da29bc935c7d692219ba285350 Mon Sep 17 00:00:00 2001 From: Gregorio Chiko Putra Date: Wed, 6 Sep 2017 16:01:57 +0700 Subject: [PATCH] Fix editor privilage issues --- App/Controllers/Posts.php | 2 +- App/Views/Data/edit_pengumuman.html | 2 +- App/Views/Data/pengumuman.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/App/Controllers/Posts.php b/App/Controllers/Posts.php index cd44113..eb1efb1 100644 --- a/App/Controllers/Posts.php +++ b/App/Controllers/Posts.php @@ -39,7 +39,7 @@ class Posts if ($not_valid = $this->post->showAll('valid_at', '>', $now)) { foreach ($not_valid as $value) { - $this->post->update('pengumuman', ['status' => 0], $value['id']); + $this->post->update('pengumuman', ['status' => 2], $value['id']); } } } diff --git a/App/Views/Data/edit_pengumuman.html b/App/Views/Data/edit_pengumuman.html index 102d01a..fb87c6b 100644 --- a/App/Views/Data/edit_pengumuman.html +++ b/App/Views/Data/edit_pengumuman.html @@ -99,7 +99,7 @@