Skip to content

Commit

Permalink
Merge pull request #7 from gurucomkz/fix-permission-check
Browse files Browse the repository at this point in the history
fix: check general canView first
  • Loading branch information
lekoala authored Nov 24, 2021
2 parents fe46dbc + 21993f9 commit 17feadf
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 17feadf

Please sign in to comment.