Error message "Not Permitted" when invoking calendar

Added a calendar view in Therapy Plan under Healthcare. But when opening the calendar view, am getting “Not permitted” error message.
Had this working fine in v13, getting this error message in v14.
Any specific permissions need to be given for calling the event function in the .py file?