ooouch...
I just realized you are not talking about sub panels (are you? )
Sorry! ... a little burned out here.
Anyways... it works in a similar way.
Your stuff should look something like ... if I was wrong the first time.
PHP Code:
if(!ACLController::checkAccess('Accounts', 'list', true)){
unset($viewdefs['Contacts']['EditView']['panels']['YOURPANEL NAME']);
};
in your meta (edit/detail)viewdefs.php data file . It should be in the custom folder too.
BUT this file is also buried in the cache folders so after you make your changes you'll need to clear out the cache before you do anything else.
Cache is getting recreated everytime you click on your module, so this should be part of your routing when debugging
Bookmarks