SwiftModders Posted February 12, 2020 Share Posted February 12, 2020 Hi All, I am trying to learn more about how to handle admin permissions for a module I am working on. The module will allow customers to post data in the client area and I want to give admins the ability to remove or edit that data. I know many WHMCS users have different admin permissions and I wanted to know the best practice for setting up permissions within your module. So if I have the admin role "Support Staff", I don't want them to have access to delete the data, but only edit it. Is there a hook to tie into Admin Roles and create new checkboxes among the permissions? If not, is it better to just create my own permissions system based on the roles available? I really appreciate any insight! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted February 12, 2020 Share Posted February 12, 2020 (edited) 32 minutes ago, SwiftModders LLC said: I really appreciate any insight! Don't do it. My 2 cents. 32 minutes ago, SwiftModders LLC said: If not, is it better to just create my own permissions system based on the roles available? That's exactly what I'd do. It's boring 😑 Edited February 12, 2020 by Kian 1 Quote Link to comment Share on other sites More sharing options...
SwiftModders Posted February 12, 2020 Author Share Posted February 12, 2020 3 minutes ago, Kian said: Don't do it. My 2 cents. That's exactly what I'd do. It's boring 😑 I figured as much! I didn't see any documentation from WHMCS in regards to working with the admin roles as a developer. I'll just do it in my own way 🙂 0 Quote Link to comment Share on other sites More sharing options...
wsa Posted February 12, 2020 Share Posted February 12, 2020 Yes it better creates your own Admin Roles 🙂 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.