function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Steve ConnellySteve Connelly 

Lightning component quit working for users recently

We have a custom lightning component used to show users Account Team members on an account related list. This has worked fine for a couple of years.

Looks like this as a widget on the account page created via Lightning Component:
User-added image

This is the regular Account team related list:
User-added image

Now, suddenly, only admins can see the results in the Lightning Component. Other profiles see the widget with an error:
User-added image

They can still see the Account Team in the regular related list.

NOTE, the error is the error detailed in the code for the component.
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" controller="AccountTeamHelper">
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
    <aura:attribute name="TeamMembers" type="AccountTeamMember[]" />
    <lightning:card title="Account Team" iconName="custom:custom103">
        <div style="margin: 0px 5px">
            <p class="slds-p-horizontal_small">
                <aura:if isTrue="{!v.TeamMembers.length > 0}">
                <aura:iteration items="{!v.TeamMembers}" var="member">
                    <!-- <span style="display: inline-block; margin: 3px;"><lightning:avatar src="{!member.User.SmallPhotoUrl}" alternativeText="(Avatar)" fallbackIconName="standard:avatar" variant="circle" /></span> -->
                    <span><a href="{!'/one/one.app#/sObject/' + member.User.Id + '/view'}">{!member.User.FirstName}&nbsp;{!member.User.LastName}</a> - {!member.TeamMemberRole}</span><br/>
                </aura:iteration>
                <aura:set attribute="else">
                    No account team members have been assigned to this account.
                </aura:set>
                </aura:if>
        	</p>
        </div>
    </lightning:card>
</aura:component>
I am wondering if there was a change in the latest release that could have caused this.

Has anyone else seen something like this? could it be a new permission that we have to add to our profiles?

What can Admins still see the results?

So I don't know if this is a change that requires us to change component code or a change that we need to address in profiles.

This component has been working fine for years and now it suddenlt quits.

Any thoughts or ideas on this one?
Steve
Best Answer chosen by Steve Connelly
VinayVinay (Salesforce Developers) 
Hi Steve,

Check if other profiles have access to 'AccountTeamHelper' controller?

Thanks