Atlas-Assistance-Dogs / atlas-dogs

Repository for Atlas Dogs flows in Salesforce
1 stars 1 forks source link

Add ability to hide file type based on permissions #483

Closed atlasjen closed 2 months ago

atlasjen commented 1 year ago

related to #482 , we need a way to limit which files a user sees. In particular, it would be files for Client,ADSiM and TSiM that I would want to hide.

We are going to be creating a public group like "VolunteerAccessOnly" , so if the LWC could access that , that is one simple approach. we could just show files that have no type or have type volunteer. We will also be making a public group for people who can access everything. "FullAccess" .

overtime i could see filtering by other groups, but right now this would meet our most important use case.

perhaps this can be another column in the mapping we already use to say which categories and types go together. it could just contain the name of the public groups that have access..

deb761 commented 1 year ago

I would suggest naming groups based on the access granted by the group. So:

atlasjen commented 1 year ago

that makes sense. i know the ones that ADI (assistance dogs international) will be most concerned w us protecting are client records.. so I wonder about FullAccessNoClient as another option just to say we have it.. however, that's not a valid use case right now so maybe we dont' make it more complex than it is?

So is this something you are able to access from the LWC?

deb761 commented 1 year ago

Each object in Salesforce has an owner. This owner can be a group, so if we set the owner of each file to be a group, we get the filtering for free. I think. I am testing that theory now.

atlasjen commented 3 months ago

reopening in 1.8

atlasjen commented 2 months ago

i think we can close this, ya?

atlasjen commented 2 months ago

closing as fixed in 1.9