authInfo->getPerms('global')->check(Perm::G_NEWS_POSTS_MANAGE)) Template::throwError(403); $pagination = Pagination::fromInput($msz->news->countPosts( includeScheduled: true, includeDeleted: true ), 15); if(!$pagination->validOffset) Template::throwError(404); $posts = $msz->news->getPosts( includeScheduled: true, includeDeleted: true, pagination: $pagination ); Template::render('manage.news.posts', [ 'news_posts' => $posts, 'posts_pagination' => $pagination, ]);