mirror of
https://github.com/ubicloud/ubicloud.git
synced 2023-08-22 09:38:31 +03:00
To decide show sidebar item to user, we need to check user's permission on project. We check one by one, but I don't want it. It runs a query for each check. I made `actions` argument optional in our authorization query. If it's not provided, it returns all matched policies that user has permission on given object. So we can fetch this list once, and check permission from it. Also we don't show create buttons if user doesn't have create permission for Vm or Private Subnet. Fixes #436