[Vtigercrm-commits] [Vtiger development] #7962: $currentModule in getListButtons() in CRMEntity.php out-of-scope
Vtiger development
vtiger-tickets at trac.vtiger.com
Tue Feb 25 09:24:56 GMT 2014
#7962: $currentModule in getListButtons() in CRMEntity.php out-of-scope
------------------------+-------------------------
Reporter: alanlord | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 5.4.0
Severity: Medium | Resolution:
Keywords: |
------------------------+-------------------------
Comment (by alanlord):
This is for vtiger 5.4.0 not 6.0.0
If you see, the getListButtons function calls isPermitted() with a var
$currentModule. But inside this function $currentModule is out of scope so
is always sent empty.
If we add
{{{
global $currentModule
}}}
to the start of this function then the list buttons display correctly,
without it, if you look at a list view of say "Vendors" when the user is
not allowed to delete the Delete button is still be visible.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7962#comment:3>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list