Browse Source

Merge "Use policy_rules for user role assignment and group tabs"

changes/82/783782/1
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
28e3fa5bee
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      openstack_dashboard/dashboards/identity/users/tabs.py

+ 2
- 8
openstack_dashboard/dashboards/identity/users/tabs.py View File

@ -89,10 +89,7 @@ class RoleAssignmentsTab(tabs.TableTab):
slug = "roleassignments"
template_name = "horizon/common/_detail_table.html"
preload = False
def allowed(self, request):
return policy.check((("identity", "identity:list_role_assignments"),),
self.request)
policy_rules = (("identity", "identity:list_role_assignments"),)
def get_roleassignmentstable_data(self):
user = self.tab_group.kwargs['user']
@ -139,10 +136,7 @@ class GroupsTab(tabs.TableTab):
slug = "groups"
template_name = "horizon/common/_detail_table.html"
preload = False
def allowed(self, request):
return policy.check((("identity", "identity:list_groups"),),
self.request)
policy_rules = (("identity", "identity:list_groups"),)
def get_groupstable_data(self):
user_groups = []


Loading…
Cancel
Save