Jump to content

Admin Roles & Permissions


SwiftModders

Recommended Posts

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!

Link to comment
Share on other sites

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 by Kian
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated