[SalesForce] Lightning: Are there any global variables to check current user profile or custom permissions

Currently, only $Browser and $Locale are available as global value providers.

Are there any ideas how to check profile and custom permissions of current user without running SOQL query in @auraenabled apex? I had a look into $A.* but no available helper javascript functions that seems can verify profile details.

Best Answer

No, the more value providers that are added, the more weight we add to every request. Serializing down all the permissions would be crazy expensive as well.

You'll need to provide that information to your component from the server yourself, sorry.