Friends. Please share the hook that restricts the client's access to the client cabinet if his accounts are overdue. I found this:
https://www.whmcms.com/freedownload/39/restrict-client-access-to-client-area-if-invoices-are-overdue. Initially, it should work as follows: This interception function will restrict the access of registered clients to your client cabinet, if they have one or more overdue accounts, only the following pages are available:
- My invoices
- View the invoice
- Credit card management
- Top up your account
- MassPay
But for some reason it doesn't work with this version.
I checked it as follows: I marked the invoice to the client as UNPAID, but nothing has changed and everything is still available to the client.