Archived
1
0

Changes of the last few months including restructuring system from using only ranks to permissions

This commit is contained in:
Marcel
2018-12-26 18:19:28 +01:00
parent 72f3434803
commit 1a1ac17ecf
38 changed files with 845 additions and 361 deletions

View File

@@ -102,7 +102,7 @@ class Blog extends MY_Controller {
}
function add() {
if(isset($_SESSION['user']) && $_SESSION['user']['rank'] >= 6) {
if(isset($_SESSION['user']) && $this->hasPermission('blog.create')) {
redirect('/admin/blog/add');
} else {
redirect('/blog');