From 939a364effdca0db41ba4b80f8d5fbff25e5aa26 Mon Sep 17 00:00:00 2001 From: bdmehedi Date: Fri, 17 Nov 2023 08:53:16 +0600 Subject: [PATCH] Fixed the rest permission issue --- includes/Rest/Help/Help.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Rest/Help/Help.php b/includes/Rest/Help/Help.php index d77febb..8eb7b1a 100644 --- a/includes/Rest/Help/Help.php +++ b/includes/Rest/Help/Help.php @@ -111,4 +111,8 @@ public function disconnect_wemail() { ] ); } + + public function permission( $request ) { + return wemail()->user->can( 'view_wemail' ); + } }