TableTab ignores Table permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
TableTab ignores permissions set on table(s) listed in table_classes attribute.
When defining a TableTab we specify one or more DataTable via table_classes attribute:
class MyTab(tabs.
table_classes = [SimpleTable, ProtectedTable]
If ProtectedTable has permissions set in inner Meta classe like so:
class ProtectedTable(
...
class Meta(object):
permissions = ['openstack.
Permission should be honored and, in this example, only an admin must
able to view the table ProtectedTable.
How to reproduce
==============
An easy way to reproduce it is to change permission on an existing table used in a tab.
For instance, change permission of VolumeSnapshots
class VolumeSnapshots
...
class Meta(object):
...
permissions = ['invalid']
Then go to: Compute > Volumes > Volume Snapshots.
You will see the corresponding table.
Changed in horizon: | |
assignee: | nobody → Romain Hardouin (romain-hardouin) |
description: | updated |
tags: | added: horizon-core |
Changed in horizon: | |
assignee: | Romain Hardouin (romain-hardouin) → Rob Cresswell (robcresswell) |
Fix proposed to branch: master /review. openstack. org/163643
Review: https:/