From 369d65c38970a9bcabd3392ec87e5c20b46ce31c Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Tue, 5 Jun 2018 18:23:54 +0300 Subject: [PATCH] Remove unused policy rules This removes the admin_or_user_does_not_work and the admin_or_user policy rules, which are not used anywhere else, and effectively just generate noise in the policy file. Change-Id: Ia3251956be30c0d3a8a1563d7561e13f8a276c0b --- barbican/common/policies/base.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/barbican/common/policies/base.py b/barbican/common/policies/base.py index 9b5500d48..dd2316a15 100644 --- a/barbican/common/policies/base.py +++ b/barbican/common/policies/base.py @@ -24,10 +24,6 @@ rules = [ 'role:audit'), policy.RuleDefault('service_admin', 'role:key-manager:service-admin'), - policy.RuleDefault('admin_or_user_does_not_work', - 'project_id:%(project_id)s'), - policy.RuleDefault('admin_or_user', - 'rule:admin or project_id:%(project_id)s'), policy.RuleDefault('admin_or_creator', 'rule:admin or rule:creator'), policy.RuleDefault('all_but_audit',