DataTable column level policy_rules doesn't work.

Bug #1703313 reported by Li Rita
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Medium
Alok Kumar

Bug Description

Version: Ocata
Problem: The function allowed(self, request) in class Column which is in horizon/tables/base.py will throw exception "TypeError: 'str' object is not callable" if you add the "policy_rules" for DataTable column.

I check the history:
In bellowing changelist, the "DataTable column level policy" was merged on Dec 9, 2016
https://github.com/openstack/horizon/commit/0744e8e5942858756e80aff6f16fd5f89dec6077

But there was a refactor for "POLICY_CHECK_FUNCTION" on Nov 25, 2016
https://github.com/openstack/horizon/commit/f5685ebe468626a983954132c3e5754e9954563b

The refactor shall also apply to "DataTable column level policy", otherwise, the exception will be throw.

Li Rita (sfw123817)
summary: - DataTable column level policy_rules(allowed function) throw exception
+ DataTable column level policy_rules doesn't work.
Alok Kumar (rajalokan)
Changed in horizon:
assignee: nobody → Alok Kumar (rajalokan)
Ying Zuo (yingzuo)
Changed in horizon:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.