khoait / DCE.PCF

Power Apps PCF Controls Repository
GNU General Public License v3.0
48 stars 12 forks source link

Seleted items are not loaded in Read-only form #73

Closed khoait closed 11 months ago

khoait commented 11 months ago

Component

PolyLookup v1.1.3

Describe the bug

When user only have read permissions, the form becomes readonly and seleted items are not loaded.

Expected behavior

Selected items should load normally when user have read permissions on both sides of the relationship.

Actual behavior

Selected items not loaded.

Additional context

Discussed in https://github.com/khoait/DCE.PCF/discussions/72

Originally posted by **MB-Motive** October 9, 2023 Hi Khoa You have made a really great and useful PCF with the PolyLookup (repo starred!) We have been testing it out for a app we are building. Everything was looking good until we applied security role restrictions (e.g. can only edit records owned by you) - this made the PolyLookup blank and users with read only access can't see the selected items. It also made the outputted text blank (I thought I might be able to show the outputted text if the form was read only). I saw that Permissions are listed in your To Do. Is the above behaviour expected? Are there workarounds you recommend? Do you know when you are planning to add support for permissions? Thanks Matt