-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing 'storages' association on Datacenter #23252
Fix missing 'storages' association on Datacenter #23252
Conversation
Let me know if you're able to write a test for this. 😉 |
When provisioning a Vm as a user that belongs to a group with a belongs_to filter applying Rbac on storages fails due to a missing virtual_has_many on the Datacenter base class.
05ccbc7
to
7eb283d
Compare
Ha yeah working on it, I thought I had it down but it doesn't fail without the change to EmsFolder so it isn't going down the same exact path. I'll push up what I have now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, didn't see the test pushed... LGTM. It's a contrived example but demonstrates how the filters are really an "allowed" list and anything not in the list is "not allowed".
Fixed the issue described in ☝️ here: #23256 |
Backported to radjabov via merge of master into radjabov |
When provisioning a Vm as a user that belongs to a group with a belongs_to filter applying Rbac on storages fails due to a missing virtual_has_many on the Datacenter base class.