Skip to content
Snippets Groups Projects
Commit 3d4155ed authored by Prasad's avatar Prasad
Browse files

Fixed: Reports checkLinkAccess as static method.

parent 2e59810b
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ class Reports_Module_Model extends Vtiger_Module_Model {
* Function is a callback from Vtiger_Link model to check permission for the links
* @param type $linkData
*/
public function checkLinkAccess($linkData) {
public static function checkLinkAccess($linkData) {
$privileges = Users_Privileges_Model::getCurrentUserPrivilegesModel();
$reportModuleModel = Vtiger_Module_Model::getInstance('Reports');
return $privileges->hasModulePermission($reportModuleModel->getId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment