<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/4814/custom-visibility-code</link><description>Hi Everyone, 
 Does anyone know if it&amp;#39;s possible to have custom visibility code that will show a module results in the sub panels under a record but not allow the user to open that result or view the result in a report unless that have access to the team</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/29942?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 00:52:31 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d14e91b0-e515-4f0e-a7fe-aefa1e39727f</guid><dc:creator>Dmitrii Mikhalchenko</dc:creator><description>&lt;p&gt;Hi Jacub,&lt;/p&gt;
&lt;p&gt;where did you locate CustomDisableTeamsLink.php file?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have placed my custom file into custom/modules/Accounts, gave it namespace&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;Sugarcrm\Sugarcrm\custom\modules\Accounts&lt;/pre&gt;
&lt;p&gt;but after R&amp;amp;R instance get broken and error in logs:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;AH01071: Got error &amp;#39;PHP message: PHP Fatal error:&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Uncaught Error: Class &amp;quot;extendedSubpanelLink&amp;quot; not found in /home/websites/speedpanel.loadedstage.com/wwwroot/include/MetaDataManager/MetaDataConverter.php:338&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/25993?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2022 12:41:05 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:c2dcede5-85da-41b4-8b0c-02c90443013d</guid><dc:creator>Jakub Valenta</dc:creator><description>&lt;p&gt;Hello to anybody who found this article.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve done something similar (if I got the question right) by creating custom link file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;class CustomDisableTeamsLink extends Link2 {
    /**
     * @see Link2::buildJoinSugarQuery()
     */
    public function buildJoinSugarQuery($sugar_query, $options = []) {
        if ($sugar_query-&amp;gt;from-&amp;gt;module_name === &amp;#39;&amp;lt;moduleInSubpanel&amp;gt;&amp;#39;) {
            // disable teams
            unset($sugar_query-&amp;gt;join[strtolower($this-&amp;gt;getRelatedModuleName()).&amp;#39;_tf&amp;#39;]);
        } else {
            return parent::buildJoinSugarQuery($sugar_query, $options);
        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(Don&amp;#39;t forget to override the subpanel to use this custom link.)&lt;/p&gt;
&lt;p&gt;The only issue is, it opens preview when clicking the preview icon.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jakub&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23804?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 23:34:30 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:bc120b4c-89f4-4ff9-b5a4-155fe7fd20d1</guid><dc:creator>Matthew Rees-George</dc:creator><description>&lt;p&gt;Recently I&amp;#39;ve had to make some fields read only based on business rules, and the custom ACL way is definitely the way to go.&amp;nbsp; It&amp;#39;s quite an elegant framework.&lt;/p&gt;
&lt;p&gt;Previously I&amp;#39;ve done it using client side code, but that doesn&amp;#39;t apply to the mobile app or web client.&lt;/p&gt;
&lt;p&gt;Note that you need to call your custom ACL &amp;#39;SugarACL&amp;lt;whatever&amp;gt;&amp;#39; for the auto loader to pick it up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23749?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 13:38:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:7ef74f1e-fbb1-48ad-88d0-52b23d6be64e</guid><dc:creator>Dan Petersen</dc:creator><description>&lt;p&gt;My apologies for not including out version of Sugar as we are on Professional. I am going to look into possible upgrading for this feature when we have more time to investigate next week. Thank you for sending this over!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23730?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 19:23:59 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:00ecffc5-6826-4e15-bf2d-a6b6d99c34e4</guid><dc:creator>Dmytro Chupylka</dc:creator><description>&lt;p&gt;Yeah, unfortunately, &amp;quot;The team-based permissions feature is not available in Sugar Professional&amp;quot; according to &lt;a href="https://support.sugarcrm.com/Knowledge_Base/Users_Teams_Roles/Understanding_Team-Based_Permissions/"&gt;https://support.sugarcrm.com/Knowledge_Base/Users_Teams_Roles/Understanding_Team-Based_Permissions/&lt;/a&gt;&amp;nbsp; ...&lt;/p&gt;
&lt;p&gt;Anyway, there is still a no-code solution for Pro - with some configuring efforts, but fairly working&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23729?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 19:13:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:8922b04b-a2cb-48ab-835a-4a9d770981c1</guid><dc:creator>Dmytro Chupylka</dc:creator><description>&lt;p&gt;Thank you, Nastya!&lt;br /&gt;It&amp;#39;s always a pleasure to learn from the teammates :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23719?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 17:08:06 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:1597158b-f442-4caf-ab61-bf5fd3325714</guid><dc:creator>Vincent Amari</dc:creator><description>&lt;p&gt;for sake of completeness, even on Enterprise, that Team &amp;#39;Selected&amp;#39; option doesn&amp;#39;t appear until you enable Team based permissions&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23716?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 17:05:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:afb6548d-b5aa-40e4-bfb6-00129881b284</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;That explains it, thank you! :)&lt;/p&gt;
&lt;p&gt;Looks like I had not refreshed my page and didn&amp;#39;t see your comment on Team-Based permissions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23714?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 17:02:44 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:a9661e82-dc6e-4418-9e43-b6303445e592</guid><dc:creator>Vincent Amari</dc:creator><description>&lt;p&gt;hi Francesca, I don&amp;#39;t believe Team Based permissions is an option for Sugar Professional?&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/54/pastedimage1622739817311v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23712?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 17:00:47 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ad533c01-3fe1-422c-bb4d-67b26b3b360d</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Interesting example, what version of Sugar are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do not see the &amp;quot;Selected&amp;quot; option on Sugar Professional and I was wondering when and where it was introduced.&lt;/p&gt;
&lt;p&gt;thanks,&lt;br /&gt;FrancescaS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23711?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 16:56:10 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f32b0868-af66-4660-9b0f-b1f841300110</guid><dc:creator>Vincent Amari</dc:creator><description>&lt;p&gt;I just seen this and was about to reply the same,&amp;nbsp;&lt;span&gt;Team-Based permissions will solve this&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23706?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 16:33:26 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:dab5b444-807a-4b27-9d04-7bcc88b391ed</guid><dc:creator>Anastasiia Gubanovych</dc:creator><description>&lt;p&gt;Hi:)&lt;br /&gt;&lt;br /&gt;Looks like Team-Based Permissions should solve this task: &lt;br /&gt;Let&amp;#39;s say - &lt;strong&gt;Sarah&lt;/strong&gt; has default teams: Global (primary) and Blue (selected)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-discussions-components-files/54/1_5F00_sarah.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Will&lt;/strong&gt; has default teams: Global (primary) and Red (selected)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-discussions-components-files/54/2_5F00_Will.png" /&gt;&lt;/p&gt;
&lt;p&gt;Both they are under Role that has the following settings:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-discussions-components-files/54/3_5F00_role.png" /&gt;&lt;/p&gt;
&lt;p&gt;When Sarah creates Opportunity &amp;#39;BLUE TEAM&amp;#39;, this Opportunity has Teams Global (as primary) and&amp;nbsp;Blue (with &amp;#39;enabled additional permissions&amp;#39;)&lt;/p&gt;
&lt;p&gt;When I login as Will, I see 2 Opportunities on Subpanel (because in Will&amp;#39;s Role there is &amp;#39;All&amp;#39; access to List and Will is in Global Team), but I can&amp;#39;t open record view from Blue Team (because in the Role there is &amp;#39;Owner &amp;amp; Selected Teams&amp;#39;&amp;nbsp;and neither Will is Owner nor part of a&amp;nbsp;Blue Team).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-discussions-components-files/54/4_5F00_opp_5F00_will.png" /&gt;&lt;/p&gt;
&lt;p&gt;And Sarah sees two Opp-s as well, but can open Opp of Blue Team:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-discussions-components-files/54/5_5F00_sarah_5F00_opp.png" /&gt;&lt;/p&gt;
&lt;p&gt;And let&amp;#39;s say there is Sally from the Blue team - Sally sees both Opps, but can open only the blue one:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-discussions-components-files/54/5_5F00_sally_5F00_opp.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;&lt;a href="/members/danpetersen14862"&gt;Dan Petersen&lt;/a&gt; what are your thoughts on using Team-Based permission to solve this task?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23690?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 11:35:35 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:c5ab2e10-f199-4774-965e-e898afcbf7b5</guid><dc:creator>Dmytro Chupylka</dc:creator><description>&lt;p&gt;Hi Dan,&lt;/p&gt;
&lt;p&gt;Since my Integros team has experience of extending the Roles permission matrix with additional columns (including introducing Create end separating it from Edit) along with rebuilding the OOTB security model for the sake of speeding up cascade updates of hundreds of thousands of records for on-prem customers - to avoid updates of Team for very each the subordinate records&amp;nbsp;whenever&amp;nbsp;the parent Account gets new AssignedTo and Team - I would strongly recommend avoiding core security adjustments until it is critical for Sugar adoption and&amp;nbsp;renewal.&lt;br /&gt;&lt;br /&gt;If the purpose is to help users with their business target while keeping team restrictions in place and OOTB, let me suggest a simple&amp;nbsp;no-code solution that is implemented in&amp;nbsp;2 steps:&lt;br /&gt;&lt;br /&gt;1. Add a new custom module &lt;span&gt;&amp;quot;Opps&amp;nbsp;&lt;/span&gt;&lt;span&gt;D&lt;/span&gt;&lt;span&gt;igest&amp;quot; &amp;nbsp;&lt;/span&gt;with Studio and relate it to Accounts as many-to-one.&lt;br /&gt;&lt;br /&gt;2. Configure logic that would refresh the OppDigest records&amp;nbsp; - with data necessary and sufficient for business decision - no extra Opp info.&lt;br /&gt;For example,&amp;nbsp;&amp;nbsp;show in OppDigest module all open Opps regardless of the team and sales rep the Opp is assigned to.&lt;br /&gt;&lt;br /&gt;Therefore, users could benefit from the information available for decision making while having team-restricted access to Opps via both interface and reports.&lt;br /&gt;&lt;br /&gt;Interface for Will&amp;nbsp;from BLUE_TEAM&amp;nbsp;&amp;nbsp;on the left and for Sarah from RED_TEAM on the right:&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/1590x821/__key/communityserver-discussions-components-files/54/SOLUTION.png" /&gt;&lt;/p&gt;
&lt;p&gt;The example implementation:&lt;br /&gt;step 1&amp;nbsp; - zip provided by Studio no-code tool - the OppDigest module (only please add relation to accounts manually via Studio)&lt;br /&gt;&lt;a href="https://sugarclub.sugarcrm.com/cfs-file/__key/communityserver-discussions-components-files/54/OppDigestModule.zip"&gt;sugarclub.sugarcrm.com/.../OppDigestModule.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;step 2 - zip generated by Logic Builder (&lt;a href="https://logicbuilder.integroscrm.com"&gt;https://logicbuilder.integroscrm.com&lt;/a&gt;)&amp;nbsp;no-code tool - the logic to create/update/delete OppDigest record automatically on Opp is&amp;nbsp;updated&lt;br /&gt;&lt;a href="https://sugarclub.sugarcrm.com/cfs-file/__key/communityserver-discussions-components-files/54/LogicThatRefreshesOppDigest.zip"&gt;sugarclub.sugarcrm.com/.../LogicThatRefreshesOppDigest.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Please feel free to use the solution.&lt;br /&gt;Let me know if any questions or need some logic adjustments to make the example work for your company as prod&lt;br /&gt;&lt;br /&gt;In case you are curious about the logic configuration&amp;nbsp;for&amp;nbsp;&lt;span&gt;create/update/delete OppDigest, here is the flowchart (please zoom in an follow the white line to read)&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/2162x1036/__key/communityserver-discussions-components-files/54/Flowchart009.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23688?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 06:04:44 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:1fe5d5c8-f177-4770-bcd6-6b74254a28bd</guid><dc:creator>Dmytro Chupylka</dc:creator><description>&lt;p&gt;Record View to None might&amp;nbsp;switch off access for editing for all the Opps for the Team members -&amp;nbsp; neither Red nor Blue team could access to Opps even for editing their Opp records.&lt;br /&gt;In addition, OOTB &amp;quot;Ownership&amp;quot; in Sugar is personal (represented by assignedTo user), not team-based, and&amp;nbsp;therefore restricting by Ownership&amp;nbsp;could hardly work too.&lt;br /&gt;Am I wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23687?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 22:53:08 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:565e0821-d921-4079-bbe0-7c8c7147d92e</guid><dc:creator>Alex Nassi</dc:creator><description>&lt;p&gt;Hi Dan,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;don&amp;#39;t have a direct answer, but I wonder if you can&amp;nbsp;disable the &lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Versions/11.0/Sell/Administration_Guide/Role_Management/#Setting_Module-Level_Permissions"&gt;&amp;quot;Record View&amp;quot; role option&lt;/a&gt; with &lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Versions/11.0/Sell/Administration_Guide/Role_Management/#Enabling_Team-Based_Permissions"&gt;Team Based Permissions&lt;/a&gt;&amp;nbsp;to achieve what you&amp;#39;re looking to do?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;From the first link above:&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;When &amp;quot;Record View&amp;quot; is set to &amp;quot;None&amp;quot;, the module&amp;#39;s list view displays record&amp;#39;s names, but the names are not hyperlinked to their corresponding record views like they are for users with the View permission enabled.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This help article, &lt;a href="https://support.sugarcrm.com/Knowledge_Base/Users_Teams_Roles/Introduction_to_Roles/,"&gt;https://support.sugarcrm.com/Knowledge_Base/Users_Teams_Roles/Introduction_to_Roles&lt;/a&gt;, may help as well depending on your familiarity with Roles.&lt;/p&gt;
&lt;p&gt;I hope this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23683?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 19:00:04 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0e7b0b35-75ef-4e76-9cd6-6a9ae7953979</guid><dc:creator>Dan Petersen</dc:creator><description>&lt;p&gt;Hi Dmytro,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Basically exactly what you said. We need all teams to see that their are opportunities under an organization, but not allow them to click into the record if they are not part of the opportunities team (we should not be competing against the teams). Technically we could hide a few fields within the opportunity from unrelated teams, but it is my understand that if someone ran a report then the hidden fields would show on that given report.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23682?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 18:55:02 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fcc40137-5b13-4121-be56-25af1fb8dd2a</guid><dc:creator>Dan Petersen</dc:creator><description>&lt;p&gt;Thanks Francesca I appreciate you sending that over. I will have to look into this!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23637?ContentTypeID=1</link><pubDate>Sun, 30 May 2021 09:50:45 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:31b55359-e45a-4ce8-8961-08476121afeb</guid><dc:creator>Dmytro Chupylka</dc:creator><description>&lt;p&gt;hi Dan,&lt;/p&gt;
&lt;p&gt;Could you clarify the business purpose by describing the use case from the business perspective? That might help with the&amp;nbsp; implementation options&lt;/p&gt;
&lt;p&gt;Do you need, e.g. Blue team members to be aware of the Opp managed by the Red team so that not compete with the Red team for the same Customer?&lt;/p&gt;
&lt;p&gt;What info specifically should help Blue team to decide not to create the Opp? E. G. product name/product category, some specific Opp contact involved, else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Visibility Code</title><link>https://sugarclub.sugarcrm.com/thread/23636?ContentTypeID=1</link><pubDate>Sun, 30 May 2021 00:08:38 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:62e91c9e-b533-4b3e-8cd1-8fd91b7e4108</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Hi Dan,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t think of an out of the box solution for this, but you might be able to override the teams limitations on a per-view basis limiting non team members to read-only on list and subpanel views only.&lt;/p&gt;
&lt;p&gt;In your shoes,&amp;nbsp;I would start with reviewing the acl code, and trying to reverse-engineer it:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;data/acl/SugarACLParentModule.php&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;then seeing how &lt;a href="/members/enricosimonetti"&gt;Enrico Simonetti&lt;/a&gt;&amp;#39;s post here:&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;a href="https://enricosimonetti.com/powerful-customisations-with-sugars-acl/"&gt;https://enricosimonetti.com/powerful-customisations-with-sugars-acl/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;can be adapted to your particular situation.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;There may be something in the context variable that will tell you what kind of view you are, in which case it should not be hard to customize it based on Enrico&amp;#39;s code.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;I&amp;#39;ll be interested to see if others come up with different ideas...&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Good luck!&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;FrancescaS&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>