Page MenuHomePhabricator

In Phortune, use actual merchant authority (not authority grants) to control account visibility
ClosedPublic

Authored by epriestley on Aug 16 2019, 3:18 PM.
Tags
None
Referenced Files
F13051967: D20716.id.diff
Fri, Apr 19, 6:04 AM
Unknown Object (File)
Wed, Apr 17, 7:55 PM
Unknown Object (File)
Thu, Apr 11, 9:34 AM
Unknown Object (File)
Mon, Apr 8, 7:49 PM
Unknown Object (File)
Tue, Apr 2, 4:21 PM
Unknown Object (File)
Fri, Mar 29, 2:10 AM
Unknown Object (File)
Feb 3 2024, 11:05 PM
Unknown Object (File)
Jan 25 2024, 2:08 AM
Subscribers
None

Details

Summary

Depends on D20715. Ref T13366. See that task for discussion.

Replace the unreliable "grantAuthority()"-based check with an actual "can the viewer edit any merchant this account has a relationship with?" check.

This makes these objects easier to use from a policy perspective and makes it so that the Query alone can fully enforce permissions properly with no setup, so general infrastructure (like handles and transactions) works properly with Phortune objects.

Test Plan

Viewed merchants and accounts as users with no authority, direct authority on the account, and indirect authority via a merchant relationship.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable