QuestionQ17

VerifiedBasic Lightning Web Component Development

Which two scoped modules should a developer import in Lightning web components to verify user permissions?

Choose two
Explanation

Lightning Web Components imports static permission references from @salesforce/userPermission for standard user permissions and @salesforce/customPermission for custom permissions. The imported reference resolves as true when the context user has the permission and as undefined otherwise.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!