1

It is written in Lightning documentation that programmer must be enforce Sharing and CRUD/FLS rules manually. But when user go to detail-page in Napili Community user get Invalid Page when record isn't shared for him.

How can i disable this option?

2
  • Is this a standard page or a VF page that you have built? Which community licence type are you using?
    – Dave Humm
    Commented Jul 13, 2017 at 9:23
  • This is record detail page. License doesn't matter, if user don't have share for record, community display 'Invalid page'
    – TPEHEP
    Commented Jul 13, 2017 at 13:15

1 Answer 1

0

@TPEHEP,

If you are using a drill-down to navigate to the detail page, I don't think there is a way to disable the hyperlinks dynamically, you need to handle the CRUD/FLS in the list view / parent component where the record is displayed a.k.a hide the record when user don't have access. However, if you must display the record in the parent component, you should create a custom lightning component that displays valid message / record details based on user's FLS. Update your detail record layout to use this custom component.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .