diff --git a/.gitignore b/.gitignore index d422a0e4..a36cd717 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ bl-plugins/discovery bl-kernel/bludit.pro.php bl-themes/docs bl-themes/docsx +bl-themes/mediumish \ No newline at end of file diff --git a/bl-kernel/admin/controllers/content.php b/bl-kernel/admin/controllers/content.php index 7044229a..33612acb 100644 --- a/bl-kernel/admin/controllers/content.php +++ b/bl-kernel/admin/controllers/content.php @@ -4,7 +4,7 @@ // Check role // ============================================================================ -checkRole(array('admin', 'moderator')); +checkRole(array('admin', 'editor')); // ============================================================================ // Functions diff --git a/bl-kernel/admin/controllers/edit-content.php b/bl-kernel/admin/controllers/edit-content.php index 34326cfa..1582baca 100644 --- a/bl-kernel/admin/controllers/edit-content.php +++ b/bl-kernel/admin/controllers/edit-content.php @@ -4,7 +4,7 @@ // Check role // ============================================================================ -if (!checkRole(array('admin','moderator'), false)) { +if (!checkRole(array('admin','editor'), false)) { try { $pageKey = isset($_POST['key']) ? $_POST['key'] : $layout['parameters']; $page = new PageX($pageKey); diff --git a/bl-kernel/admin/controllers/login.php b/bl-kernel/admin/controllers/login.php index a30cbc85..66ce83e1 100644 --- a/bl-kernel/admin/controllers/login.php +++ b/bl-kernel/admin/controllers/login.php @@ -31,6 +31,7 @@ function checkLogin($args) Redirect::home(); } + // Other user without the role reader redirect to dashboard Redirect::page('dashboard'); return true; } @@ -40,7 +41,6 @@ function checkLogin($args) // Create alert Alert::set($Language->g('Username or password incorrect'), ALERT_STATUS_FAIL); - return false; } diff --git a/bl-kernel/admin/controllers/new-content.php b/bl-kernel/admin/controllers/new-content.php index 739f7c41..69572720 100644 --- a/bl-kernel/admin/controllers/new-content.php +++ b/bl-kernel/admin/controllers/new-content.php @@ -4,7 +4,7 @@ // Check role // ============================================================================ -checkRole(array('admin', 'moderator', 'editor')); +checkRole(array('admin', 'editor')); // ============================================================================ // Functions diff --git a/bl-kernel/admin/themes/booty/html/sidebar.php b/bl-kernel/admin/themes/booty/html/sidebar.php index a97cd767..3a92a4ea 100644 --- a/bl-kernel/admin/themes/booty/html/sidebar.php +++ b/bl-kernel/admin/themes/booty/html/sidebar.php @@ -16,6 +16,13 @@ p('New content') ?> + + + + + + @@ -57,7 +65,6 @@ } } ?> -