Untitled

mail@pastecode.io avatar
unknown
mysql
a month ago
755 B
1
Indexable
Never
			o.object_id = [::1]" . (!$this->user->role_super ? $this->permission->has_access("object", "get_all_objects") === false ? 
					
					" AND o.object_id IN (SELECT og.object_id FROM user_group ug LEFT JOIN object_group og ON ug.group_id = og.group_id WHERE ug.user_id = [::2] AND og.object_id IS NOT NULL AND og.delete_date IS NULL) " : 
					
					" AND (o.client_id IN (SELECT client_id FROM client WHERE client_id = [::3] OR client_master_id = [::3]) 
						OR o.object_id IN (SELECT og.object_id FROM user_group ug LEFT JOIN object_group og ON ug.group_id = og.group_id WHERE ug.user_id = [::2] AND og.object_id IS NOT NULL AND og.delete_date IS NULL)) 
					" : ""), 
					
					(int) $id, (int) $this->user->user_id, (int) $this->user->client_id);
Leave a Comment