Skip to content

Commit

Permalink
Merge pull request #342 from weMail/fix/rest-permission-issue
Browse files Browse the repository at this point in the history
Fixed the rest permission issue.
  • Loading branch information
bdmehedi authored Nov 27, 2023
2 parents 9e118ae + 939a364 commit 96b0fd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/Rest/Help/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,8 @@ public function disconnect_wemail() {
]
);
}

public function permission( $request ) {
return wemail()->user->can( 'view_wemail' );
}
}

0 comments on commit 96b0fd1

Please sign in to comment.