From ac79c57de4079051c93142bc6a5b3d070daa1db0 Mon Sep 17 00:00:00 2001 From: Zachary Schroeder Date: Mon, 28 Mar 2022 11:08:36 -0500 Subject: [PATCH] add empty string check --- app/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/User.php b/app/User.php index e5eee88dc..ea8f124ec 100644 --- a/app/User.php +++ b/app/User.php @@ -322,7 +322,7 @@ public function hasManageMailboxAccess() { //$mailboxes = $this->mailboxesCanViewWithSettings(true); $mailboxes = $this->mailboxesSettings(); foreach ($mailboxes as $mailbox) { - if (!empty(json_decode($mailbox->access))) { + if (!empty($mailbox->access) && !empty(json_decode($mailbox->access))) { return true; } };