From f1f03666827e69001f890ca18f71391f20a7d9c9 Mon Sep 17 00:00:00 2001 From: oflatt Date: Thu, 6 Jun 2024 15:32:27 -0700 Subject: [PATCH] add oflatt as owner --- .../discord/ALLOW/oflatt_manage_role.json | 2 +- cedar-example-use-cases/discord/entities.json | 80 +++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletion(-) diff --git a/cedar-example-use-cases/discord/ALLOW/oflatt_manage_role.json b/cedar-example-use-cases/discord/ALLOW/oflatt_manage_role.json index a749eba..5014d16 100644 --- a/cedar-example-use-cases/discord/ALLOW/oflatt_manage_role.json +++ b/cedar-example-use-cases/discord/ALLOW/oflatt_manage_role.json @@ -1,5 +1,5 @@ { - "principal": "User::\"oflatt\"", + "principal": "User::\"oflatt-general\"", "action": "Action::\"ManageRole\"", "resource": "Role::\"everyone\"", "context": {} diff --git a/cedar-example-use-cases/discord/entities.json b/cedar-example-use-cases/discord/entities.json index 19a916b..88e1ad0 100644 --- a/cedar-example-use-cases/discord/entities.json +++ b/cedar-example-use-cases/discord/entities.json @@ -132,5 +132,85 @@ } }, "parents": [] + }, + { + "uid": { + "type": "Roles", + "id": "oflatt-roles" + }, + "attrs": {}, + "parents": [ + { + "type": "Role", + "id": "everyone" + }, + { + "type": "Role", + "id": "owner" + } + ] + }, + { + "uid": { + "type": "ChannelRoles", + "id": "oflatt-announcements-roles" + }, + "attrs": {}, + "parents": [ + { + "type": "ChannelRole", + "id": "everyone-announcements" + } + ] + }, + { + "uid": { + "type": "ChannelRoles", + "id": "oflatt-general-roles" + }, + "attrs": {}, + "parents": [] + }, + { + "uid": { + "type": "User", + "id": "oflatt-announcements" + }, + "attrs": { + "roles": { + "type": "Roles", + "id": "oflatt-roles" + }, + "channel_roles": { + "type": "ChannelRoles", + "id": "oflatt-announcements-roles" + }, + "channel": { + "type": "Channel", + "id": "announcements" + } + }, + "parents": [] + }, + { + "uid": { + "type": "User", + "id": "oflatt-general" + }, + "attrs": { + "roles": { + "type": "Roles", + "id": "oflatt-roles" + }, + "channel_roles": { + "type": "ChannelRoles", + "id": "oflatt-general-roles" + }, + "channel": { + "type": "Channel", + "id": "general" + } + }, + "parents": [] } ] \ No newline at end of file