Jump to content

Not seeing widgets in administrator roles section


keyboardmls

Recommended Posts

After navigating to Setup > Administrator Roles and then clicking the edit icon next to the admin role group the "Widgets" section does not show any options to enable or disable. Does anyone know what might be causing this? Is this only for custom widgets and not the preinstalled ones?

 

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...
I noticed the same thing. Seems like there should be a way to turn them on/off within the admin area.

as they're now based on adminstrator roles, you can view the code to see which role is triggering the widget to be visible... e.g in the Client Activity widget

 

    protected $requiredPermission = 'List Clients';

so, only admins who have access to the "List Clients" options see the widget - so one way to disable the widget would be to untick the "List Clients" checkbox in the administrator roles page - though obviously they would then be unable to view the list of clients. :roll:

 

another way to hide the widget would be to add an invalid entry into the above code.

 

I have renamed the files to forcefully disable ones I don't want however I imagine this could be a problem if any of them need to be updated in a future (automated) update...?

I suspect the next time you do an update, WHMCS will see the widget files are missing and replace them again. :)

Link to comment
Share on other sites

I suspect the next time you do an update, WHMCS will see the widget files are missing and replace them again. :)

 

If that's the case, that wouldn't be so bad. That would at least ensure the system maintains the latest updates even if it means I have to rename them again. I'd rather that happen than for me to remember each time to manually name those files back before running an update.

 

Maybe WHMCS can confirm that theory...

 

Thanks,

Jason

Link to comment
Share on other sites

Maybe WHMCS can confirm that theory...

it's a theory based on something WHMCS have previously posted with regards to language files... :)

 

https://forum.whmcs.com/showthread.php?119386-WHMCSv7-auto-update-what-happens-if-you-use-a-custom-admin-folder&p=481318#post481318

 

I can confirm that if you delete some of the client area language files, an automatic update would reintroduce them when performing an update.

in any event, WHMCS have spoken about making these movable/disabling in a future version - so what WHMCS during an update might be irrelevant (depending on how long WHMCS take to make the improvements!)

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