# User receiving error message 'You do not have access to the Apex class named 'SharinPixLightningController' when trying to access a SharinPix component. What should I do?

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2FjoENscE2in30o9hdQiQm%2Fimage%20-%202026-01-28T164723.513.png?alt=media\&token=2a7ac5f0-5491-49f8-8bc7-13b56088f72d)

Error messages such as '**You do not have access to the Apex class named 'SharinPixLightningController'** ' (or another class name: '*You do not have access to Apex class name \[ApexClassName]* ') mostly occur when a non-admin user try to access a SharinPix component.

This is due to the following Salesforce critical update: **Restrict Access to @AuraEnabled Apex Methods for Authenticated Users Based on User Profile**

To resolve this, simply assign the permission set named **SharinPix Lightning Components** to the user encountering this error message. The SharinPix Lightning Component permission set gives access to SharinPix's Apex classes.

{% hint style="success" %}
This will be automatically activated in August 2020 unless otherwise stated by Salesforce.
{% endhint %}

{% hint style="warning" %}
**Note:**

If the permission set **SharinPix Lightning Components** is not available, kindly update your SharinPix package. You can refer to the following article for more information about how to update the SharinPix package:

[How to update SharinPix package from the AppExchange?](https://docs.sharinpix.com/faqs/how-to-update-sharinpix-package-from-the-appexchange)
{% endhint %}
