Skip to content

Commit

Permalink
all panels with user permission. fix #110
Browse files Browse the repository at this point in the history
  • Loading branch information
xmacan committed Jul 25, 2020
1 parent 180321a commit e70a4a5
Show file tree
Hide file tree
Showing 3 changed files with 400 additions and 305 deletions.
5 changes: 3 additions & 2 deletions display.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,10 @@ function display_information() {

// extra maint plugin panel - always first

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

$row = db_fetch_row("SELECT id, data FROM plugin_intropage_panel_data WHERE panel_id='maint'");
$row = db_fetch_row_prepared("SELECT id, data FROM plugin_intropage_panel_data WHERE panel_id='maint' and user_id=?",
array($_SESSION['sess_user_id']));
if ($row && strlen($row['data']) > 20 && $_SESSION['dashboard_id'] == 1) {
intropage_display_panel($row['id']);
}
Expand Down
Loading

0 comments on commit e70a4a5

Please sign in to comment.