Skip to content

Commit e70a4a5

Browse files
committed
all panels with user permission. fix #110
1 parent 180321a commit e70a4a5

File tree

3 files changed

+400
-305
lines changed

3 files changed

+400
-305
lines changed

display.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,10 @@ function display_information() {
311311

312312
// extra maint plugin panel - always first
313313

314-
if (db_fetch_cell("SELECT directory FROM plugin_config WHERE directory='maint'")) {
314+
if (db_fetch_cell("SELECT directory FROM plugin_config WHERE directory='maint' AND status=1")) {
315315

316-
$row = db_fetch_row("SELECT id, data FROM plugin_intropage_panel_data WHERE panel_id='maint'");
316+
$row = db_fetch_row_prepared("SELECT id, data FROM plugin_intropage_panel_data WHERE panel_id='maint' and user_id=?",
317+
array($_SESSION['sess_user_id']));
317318
if ($row && strlen($row['data']) > 20 && $_SESSION['dashboard_id'] == 1) {
318319
intropage_display_panel($row['id']);
319320
}

0 commit comments

Comments
 (0)