keyboardmls Posted January 4, 2017 Share Posted January 4, 2017 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! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 4, 2017 Share Posted January 4, 2017 I think it's only for custom widgets - I converted a v6 widget to v7 (Client Activity - but it's no longer needed as WHMCS reintroduced their own) and that's the only one showing in the Administrator Roles section. 0 Quote Link to comment Share on other sites More sharing options...
charlottezweb Posted January 19, 2017 Share Posted January 19, 2017 I noticed the same thing. Seems like there should be a way to turn them on/off within the admin area. 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...? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 19, 2017 Share Posted January 19, 2017 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. 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. 0 Quote Link to comment Share on other sites More sharing options...
charlottezweb Posted January 19, 2017 Share Posted January 19, 2017 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 19, 2017 Share Posted January 19, 2017 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!) 0 Quote Link to comment Share on other sites More sharing options...
charlottezweb Posted January 19, 2017 Share Posted January 19, 2017 Good to know -- Thank you! 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.