Skip to content

Commit

Permalink
fix: check general canView first
Browse files Browse the repository at this point in the history
`LeftAndMain::canView()` allows extensions to prohibit the admin section to appear through `alternateAccessCheck` hook
  • Loading branch information
gurucomkz authored Nov 24, 2021
1 parent fe46dbc commit 21993f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MailgunAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,10 @@ public function IsAdmin()
*/
public function canView($member = null)
{
if(!parent::canView($member)) {
return false;
}

$mailer = MailgunHelper::getMailer();
// Another custom mailer has been set
if (!$mailer instanceof SwiftMailer) {
Expand Down

0 comments on commit 21993f9

Please sign in to comment.