[Trivial] Wrong policy for Heat resource type details

TrivialFix

Change-Id: I1ef79478f1309f11a6a7c4772cb844299496708b
This commit is contained in:
Tatiana Ovchinnikova 2016-03-24 11:36:41 +03:00
parent 929d1ed50d
commit e2f46511ff
2 changed files with 1 additions and 6 deletions

View File

@ -20,3 +20,4 @@ class ResourceTypes(horizon.Panel):
name = _("Resource Types")
slug = "stacks.resource_types"
permissions = ('openstack.services.orchestration',)
policy_rules = (("orchestration", "stacks:list_resource_types"),)

View File

@ -14,7 +14,6 @@
from django.utils.translation import ugettext_lazy as _
from horizon import tabs
from openstack_dashboard import policy
class ResourceTypeOverviewTab(tabs.Tab):
@ -22,11 +21,6 @@ class ResourceTypeOverviewTab(tabs.Tab):
slug = "resource_type_overview"
template_name = "project/stacks.resource_types/_details.html"
def allowed(self, request):
return policy.check(
(("orchestration", "cloudformation:DescribeStacks"),),
request)
def get_context_data(self, request):
return {"r_type": self.tab_group.kwargs['rt'],
"r_type_attributes": self.tab_group.kwargs['rt_attributes'],