Jake
11/12/2021, 8:07 PMJake
11/12/2021, 8:07 PMtrungvu
11/12/2021, 8:07 PMJake
11/12/2021, 8:10 PMJake
11/12/2021, 8:10 PMusergroup:banned#direct_member@user:an_engineer
to see the effecttrungvu
11/12/2021, 8:13 PMSleipnir
11/12/2021, 8:47 PMuser:Bob#has@attribute:disabled
to indicate that we've turned off Bob's account access. I'm now trying to write the permission that excludes disabled users from accessing data. permission write = owner->act_on_behalf - ???
Sleipnir
11/12/2021, 8:48 PM???
? You can't specify a known object in the schema languageJake
11/12/2021, 8:48 PMJake
11/12/2021, 8:49 PMrelation disabled: attribute#has
Sleipnir
11/12/2021, 8:49 PMobject:id#disabled@attribute:disabled
?Jake
11/12/2021, 8:49 PMSleipnir
11/12/2021, 8:50 PMJake
11/12/2021, 8:50 PMrelation platform: platform
and on the platform:
relation disabled: attribute#has
and then do
object:doc#platform@platform:yourproductname
and then:
permission write = owner->act_on_behalf - platform->disabled
Jake
11/12/2021, 8:51 PMJake
11/12/2021, 8:52 PMplatform
object for things like super adminsSleipnir
11/12/2021, 8:52 PMSleipnir
11/12/2021, 8:52 PMJake
11/12/2021, 8:52 PMSleipnir
11/12/2021, 8:57 PMrelation account_manager: account#manager
in tandem with a concrete relationship of user:user_id#account_manager@account:account_id#...
, then all users that are marked manager
to account account_id
are marked as account managers for user user_id
?Jake
11/12/2021, 8:58 PM#manager
Jake
11/12/2021, 8:59 PMrelation account: account
and then in your permission just do:
account->manager
Sleipnir
11/12/2021, 8:59 PMSleipnir
11/12/2021, 8:59 PM...
means no subrelationSleipnir
11/12/2021, 9:01 PM#
in the relation definition can be a computed permission?Jake
11/12/2021, 9:02 PM...
Jake
11/12/2021, 9:02 PMSleipnir
11/12/2021, 9:04 PMtrungvu
11/12/2021, 9:17 PMtrungvu
11/12/2021, 9:19 PM