Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove Team Security filtering in SugarCRM 7 - (location: custom/data/visibility/TeamSecurity.php and remember to run a quick repair!) - Code for blog post http://enricosimonetti.com/can-i-remove-team-security-from-sugarcrm/
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class TeamSecurity extends SugarVisibility
{
public function addVisibilityFrom(&$query)
{
return $query;
}
public function addVisibilityFromQuery(SugarQuery $query, $options = array())
{
return $query;
}
}
@visaolive

This comment has been minimized.

Show comment
Hide comment
@visaolive

visaolive Apr 25, 2014

Checked your solution out. This is good in some cases. But I have another scenario. Throughout SugarCRM, we're able to see that Teams security will limit record visibility. However, if we were to choose or add a new Team to any record, we see all available Teams in Sugar, as opposed to just the Teams the user is a part of. Would we be able to use this override to further enforce Team Visibility at the popup level, and only display Teams this user is a part of, and no more? Thanks!

Checked your solution out. This is good in some cases. But I have another scenario. Throughout SugarCRM, we're able to see that Teams security will limit record visibility. However, if we were to choose or add a new Team to any record, we see all available Teams in Sugar, as opposed to just the Teams the user is a part of. Would we be able to use this override to further enforce Team Visibility at the popup level, and only display Teams this user is a part of, and no more? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment