<div dir="ltr"><div>It was described how to limit access to users with the Keystone Admin role:</div><div><br></div><div><a href="http://docs.openstack.org/developer/horizon/topics/customizing.html">http://docs.openstack.org/developer/horizon/topics/customizing.html</a></div>
<div><br></div><div>Example from the tutorial:</div><div><br></div><div>permissions = list(getattr(instances_panel, 'permissions', []))</div><div>permissions.append('openstack.roles.admin')</div><div>instances_panel.permissions = tuple(permissions)</div>
<div><br></div><div>Is it possible to manage panel permissions on a user or a tenant basis?</div><div><br></div><div>We can get such details from HttpRequest like so:</div><div><br></div><div>tenant_name = request.user.tenant_name</div>
<div><br></div><div>The problem is the 'request' is not available at the time the "my_project.overrides" file is parsed.</div><div><br></div><div>Thank you.</div></div>