sf_migrate 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/import.rb +6 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWFjNmY0ZGE4YmY3YjQwN2E3YmRmODliNmZhZjc1OTQ3YzQ4MjkzNw==
4
+ NDZkOTg4YzI5MTJmMTIwNjkxYTAxMjE1N2QyOTc5NmY5YzQyMGE4NQ==
5
5
  data.tar.gz: !binary |-
6
- ODFmNWI4NDM2NzNmMjVhOTZiMDNkNzdmYjYwYzI1ZDFmZDQ3YzkzYg==
6
+ YzZkNmE1ZjUyZWJiNDE1MTc1ZmM0NmI3YTNkNDZiYmEzZmM1MmViMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZThkZjExNDhhMjVmY2E4NzUxZGViMGVlODgzNTlkNGIxNjk2NzBjYjkzMDMz
10
- M2I2MDExOGM1ZTkxMTJkZjVkNDgzMmQwZmUyNTY1Mzc0MDVhMWJjYzA4NjE0
11
- YjFkZDUyZTMwOTkyNmVhMTU3NzQ5ZDQ3MTVlMGJlODMxNTI1MTM=
9
+ M2Q2NzZmMTU4ODBhZDA0MDJmMDMwZjY2NTRkZTA1NDhiN2Y2ZWY2YzEwY2Y0
10
+ MTQwOGEzY2ViMzgzYmVlMWY4MjZmZmM3ZTg4YTFiZjMzZjE4MWQzMGRmYTNk
11
+ YzhlMzVhMTZlN2IyZmNlY2YwZTAxMmMxNmRiODI5MGRmM2ViMWI=
12
12
  data.tar.gz: !binary |-
13
- YWM3Y2Y5NWJmNDMwM2NlMWUzYWMxZjJmOTg0ZTllOTMyMmQ0NTg0MDU2OTdi
14
- MmIxYmM0Yzg4OTBhOTEzZTJiOGRmZGVmNWMzMmZkOGEwYmZhN2ZiYjM5NWVi
15
- YzhmN2FiNzExZDlkN2Q2ZTJhNDQ5M2VkMzExOGQ3ZmY0Y2M1ODI=
13
+ OWIyYzMwNWZlYjY5OTk4Nzc5N2VlYWJjNmY2ZjE5OGU2ZmUyMWE3NzQ5OWNh
14
+ OTc3NTU2YmJlNDZlODlkMmE2MmNkOGMwNmY2ZDFhYmM1YTRkNTU2ODJmZmFk
15
+ Yzc0YWE0NWY0NGM4NTQ4OTg4YWMzZjY3MWI3MDAzY2M3OWI3OTM=
data/lib/import.rb CHANGED
@@ -666,8 +666,14 @@ module SalesforceMigration
666
666
  user.salesforce_id = obj.sf_id
667
667
  user.system_generated_password = false
668
668
  user.save!
669
+
670
+ # Associate user with the object
669
671
  obj.assigned_user_id = user.id
670
672
  obj.save!
673
+
674
+ # Associate user with the corresponding ACL role
675
+ role = SugarCRM::ACLRole.find_by_name("#{type}s")
676
+ role.associate! user
671
677
 
672
678
  populate_user_pool(user, type)
673
679
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sf_migrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Petkov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-07 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sugarcrm_emp