Skip to content

Commit

Permalink
Fixes #4712 Undefined array key "cancp"
Browse files Browse the repository at this point in the history
  • Loading branch information
Sama34 authored and dvz committed Jun 22, 2023
1 parent a0e9977 commit a4dc072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@
$is_super_admin = is_super_admin($mybb->user['uid']);
}

if($mybb->usergroup['cancp'] != 1 && !$is_super_admin || !$mybb->user['uid'])
if(empty($mybb->usergroup['cancp']) && !$is_super_admin || !$mybb->user['uid'])
{
$uid = 0;
if(isset($mybb->user['uid']))
Expand Down

0 comments on commit a4dc072

Please sign in to comment.