diff --git a/modules/Settings/SharingAccess/models/Rule.php b/modules/Settings/SharingAccess/models/Rule.php
index 744c274500bf438bfc31d1182a1a23db9a4b6ee3..bdebf654f1fc2931ee246ec3e3b658672e94dbf3 100644
--- a/modules/Settings/SharingAccess/models/Rule.php
+++ b/modules/Settings/SharingAccess/models/Rule.php
@@ -121,7 +121,7 @@ class Settings_SharingAccess_Rule_Model extends Vtiger_Base_Model {
 	}
 
 	protected function getRuleComponents() {
-		if(!property_exists($this,'rule_details') ||!$this->rule_details && $this->getId()) {
+		if((!property_exists($this,'rule_details') || !$this->rule_details) && $this->getId()) {
 			$db = PearDatabase::getInstance();
 
 			$relationTypeComponents = explode('::', $this->get('relationtype'));