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