Permalink
Browse files

fix incomplete list of import of user perms

Change-Id: I29fd652d161dcc1650450e3612450c499da9b3dd
  • Loading branch information...
1 parent 19c68c4 commit 56c4d0ebe8ce1a31338223e972d6de875fd9eab9 @pbozeman pbozeman committed Dec 20, 2012
Showing with 12 additions and 1 deletion.
  1. +2 −0 lib/cloud_controller/models/user.rb
  2. +10 −1 spec/api/user_spec.rb
@@ -58,6 +58,8 @@ class User < Sequel::Model
:billing_managed_organization_guids,
:audited_organization_guids,
:space_guids,
+ :managed_space_guids,
+ :audited_space_guids,
:default_space_guid
def validate
View
@@ -20,10 +20,19 @@ module VCAP::CloudController
:organizations => lambda { |user| Models::Organization.make },
:managed_organizations => lambda { |user| Models::Organization.make },
:billing_managed_organizations => lambda { |user| Models::Organization.make },
+ :audited_organizations => lambda { |user| Models::Organization.make },
:spaces => lambda { |user|
org = user.organizations.first || Models::Organization.make
Models::Space.make(:organization => org)
- }
+ },
+ :managed_spaces => lambda { |user|
+ org = user.organizations.first || Models::Organization.make
+ Models::Space.make(:organization => org)
+ },
+ :audited_spaces => lambda { |user|
+ org = user.organizations.first || Models::Organization.make
+ Models::Space.make(:organization => org)
+ },
}
}

0 comments on commit 56c4d0e

Please sign in to comment.