JavierCN Posted April 17, 2023 Share Posted April 17, 2023 Hello everyone, I am encountering difficulties with user permissions in the WHMCS version 8.7. Currently, I am working on a module that allows the download of information from the client area. However, I am facing issues in restricting access to the download functionality based on the user's permissions for each section of the client area. Moreover, I am trying to use a PHP class in WHMCS, but I am unable to find any information related to it in the documentation available at https://classdocs.whmcs.com/8.7 I am requesting help in finding a way to check the permissions of the logged-in user in the client area so that I can restrict access to the download feature based on the user's permissions. Thank you in advance for your help and suggestions. 0 Quote Link to comment Share on other sites More sharing options...
JavierCN Posted April 17, 2023 Author Share Posted April 17, 2023 Answered: You can use the GetUserPermissions API to check the permissions of a user: https://developers.whmcs.com/api-reference/getuserpermissions/ 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.