Changes of the last few months including restructuring system from using only ranks to permissions
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user