[Openstack] [Horizon] Manage panel permissions based on user or tenant

Andrii L postmaster.lists at gmail.com
Tue Mar 25 17:04:16 UTC 2014


It was described how to limit access to users with the Keystone Admin role:

http://docs.openstack.org/developer/horizon/topics/customizing.html

Example from the tutorial:

permissions = list(getattr(instances_panel, 'permissions', []))
permissions.append('openstack.roles.admin')
instances_panel.permissions = tuple(permissions)

Is it possible to manage panel permissions on a user or a tenant basis?

We can get such details from HttpRequest like so:

tenant_name = request.user.tenant_name

The problem is the 'request' is not available at the time the
"my_project.overrides" file is parsed.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140325/cc02ed54/attachment.html>


More information about the Openstack mailing list