Removed feature "Administrator can remove posts"
This commit is contained in:
@@ -312,18 +312,4 @@ class Posts
|
||||
}
|
||||
die();
|
||||
}
|
||||
|
||||
public function remove($args = [])
|
||||
{
|
||||
$id = $args['id'];
|
||||
if ($this->model->remove($id) == true) {
|
||||
$info = 'Data berhasil dihapus';
|
||||
} else {
|
||||
$info = 'Terjadi kesalahan. Silahkan coba lagi dalam beberapa saat.';
|
||||
}
|
||||
|
||||
Session::flash('info', $info);
|
||||
Redirect::to('/');
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user