Remove people related authz actions

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-02-05 17:13:13 +04:00
parent adfef480c3
commit ce0952e4ec
5 changed files with 29 additions and 28 deletions

View File

@@ -55,13 +55,6 @@ const (
ActionTrustCenterFileDelete = "core:trust-center-file:delete"
ActionTrustCenterFileCreate = "core:trust-center-file:create"
// People actions
ActionPeopleGet = "core:people:get"
ActionPeopleList = "core:people:list"
ActionPeopleCreate = "core:people:create"
ActionPeopleUpdate = "core:people:update"
ActionPeopleDelete = "core:people:delete"
// Vendor actions
ActionVendorList = "core:vendor:list"
ActionVendorGet = "core:vendor:get"

View File

@@ -46,7 +46,6 @@ var ViewerPolicy = policy.NewPolicy(
).WithSID("org-read-access").When(organizationCondition),
policy.Allow(
ActionPeopleGet, ActionPeopleList,
ActionVendorGet, ActionVendorList,
ActionVendorContactGet, ActionVendorContactList,
ActionVendorServiceGet, ActionVendorServiceList,
@@ -114,7 +113,6 @@ var AuditorPolicy = policy.NewPolicy(
).WithSID("org-read-access").When(organizationCondition),
policy.Allow(
ActionPeopleGet, ActionPeopleList,
ActionVendorGet, ActionVendorList,
ActionVendorContactGet, ActionVendorContactList,
ActionVendorServiceGet, ActionVendorServiceList,