drosendo/whmcs-custom-apis

"Invalid Permissions: API action \"getproductsgroups\" is not allowed"

Closed this issue · 2 comments

Ive uploaded the files to the api directory and i'm presented this error when i set the action to GetProductsGroups
{"result":"error","message":"Invalid Permissions: API action \u0022getproductsgroups\u0022 is not allowed"}

image

WHMCS 8 strictly limits API permissions, and API roles manager don't support custom APIs. You need to edit tblapi_roles table, add GetProductsGroups and GetProductsActive manually. Just merge follows to field permissions:
{"getproductsactive": 1, "getproductsgroups": 1}

Hello,

I had already created a code to register this automatically sorry I didn't share it before but it's now available here

Cheers,
David