phcscriptcdnpro 74.0.0 → 75.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a659183e2d7535cf7703de59038a4e82e2190d7ff71e316f7cc598776de05b
4
- data.tar.gz: a2ca13dca91834c4b4c237bf2668897e534132848f2e1f9e9d7d513fd2b3f4e3
3
+ metadata.gz: 2d06d0c08b42e16636378da7769a33c511de16f8f80681033a9a3db4a2ed2f4c
4
+ data.tar.gz: d65ad94062ea83e40f00b1b12502e4206d0650fc7b701855c8106377fc8eaf5a
5
5
  SHA512:
6
- metadata.gz: 70ed42f6fee08f90174c106445bc0ecc8b59399e60cbdd55fbef421ea57a54bc53be55f8a5dea2e13e0ad5e2875a6c5f7d0d9fdf8c1542321f299e9a95c76537
7
- data.tar.gz: 607daca226fabdf4207e7682b2e24e184d64d9cefab21605cee603314868499f1fef51b460078cd760f746bc20fc8d4d08d97c0f7575094436e27ad7eea87093
6
+ metadata.gz: 97610705949c4cf4c0fe352f79efef1fd6190ba939212b27739d9786e85ca0d5e30fe3fa0fa8cba411e30f582de7c2ebf2864130fc499ea01d7fc3a84ca36535
7
+ data.tar.gz: 41c2e0634e33af8346ec4d06f57f810cf11dcc2e298b9f53e6a74d56b2421ba99a44fa74b5766de66c11332421e433ef76486f8a124c376ed484833c9fc5bddf
@@ -11,7 +11,7 @@ module Phcscriptcdnpro
11
11
 
12
12
  # INDEX
13
13
  def index
14
- @script_authors = Script::Author.all
14
+ @script_authors = Script::Author.where(org_id: current_user.org_id)
15
15
  end
16
16
 
17
17
  # SHOW
@@ -33,6 +33,7 @@ module Phcscriptcdnpro
33
33
  def create
34
34
  @script_author = Script::Author.new(script_author_params)
35
35
  @script_author.user_id = current_user.id
36
+ @script_author.org_id = current_user.org_id
36
37
  if @script_author.save
37
38
  redirect_to script_authors_url, :flash => { :success => 'Author was successfully created.' }
38
39
  else
@@ -11,7 +11,7 @@ module Phcscriptcdnpro
11
11
 
12
12
  # INDEX
13
13
  def index
14
- @script_extensions = Script::Extension.all
14
+ @script_extensions = Script::Extension.where(org_id: current_user.org_id)
15
15
  end
16
16
 
17
17
  # SHOW
@@ -33,6 +33,7 @@ module Phcscriptcdnpro
33
33
  def create
34
34
  @script_extension = Script::Extension.new(script_extension_params)
35
35
  @script_extension.user_id = current_user.id
36
+ @script_extension.org_id = current_user.org_id
36
37
  if @script_extension.save
37
38
  redirect_to script_extensions_url, :flash => { :success => 'Extension was successfully created.' }
38
39
  else
@@ -11,7 +11,7 @@ module Phcscriptcdnpro
11
11
 
12
12
  # INDEX
13
13
  def index
14
- @script_licences = Script::Licence.all
14
+ @script_licences = Script::Licence.where(org_id: current_user.org_id)
15
15
  end
16
16
 
17
17
  # SHOW
@@ -33,6 +33,7 @@ module Phcscriptcdnpro
33
33
  def create
34
34
  @script_licence = Script::Licence.new(script_licence_params)
35
35
  @script_licence.user_id = current_user.id
36
+ @script_licence.org_id = current_user.org_id
36
37
  if @script_licence.save
37
38
  redirect_to script_licences_url, :flash => { :success => 'Licence was successfully created.' }
38
39
  else
@@ -11,7 +11,7 @@ module Phcscriptcdnpro
11
11
 
12
12
  # INDEX
13
13
  def index
14
- @script_listings = Script::Listing.all
14
+ @script_listings = Script::Listing.where(org_id: current_user.org_id)
15
15
  end
16
16
 
17
17
  # SHOW
@@ -33,6 +33,7 @@ module Phcscriptcdnpro
33
33
  def create
34
34
  @script_listing = Script::Listing.new(script_listing_params)
35
35
  @script_listing.user_id = current_user.id
36
+ @script_listing.org_id = current_user.org_id
36
37
  if @script_listing.save
37
38
  redirect_to script_listings_path, :flash => { :success => 'Listing was successfully created.' }
38
39
  else
@@ -12,7 +12,7 @@ module Phcscriptcdnpro
12
12
  # INDEX
13
13
  def index
14
14
  script_listing = Script::Listing.find(params[:listing_id])
15
- @script_urls = script_listing.urls
15
+ @script_urls = script_listing.urls.where(org_id: current_user.org_id)
16
16
  end
17
17
 
18
18
  # SHOW
@@ -38,6 +38,7 @@ module Phcscriptcdnpro
38
38
  @script_listing = Script::Listing.find(params[:listing_id])
39
39
  @script_url = @script_listing.urls.create(script_url_params)
40
40
  @script_url.user_id = current_user.id
41
+ @script_url.org_id = current_user.org_id
41
42
  if @script_url.save
42
43
  redirect_to script_listing_urls_path, :flash => { :success => 'Author was successfully created.' }
43
44
  else
@@ -11,7 +11,7 @@ module Phcscriptcdnpro
11
11
 
12
12
  # INDEX
13
13
  def index
14
- @script_versions = Script::Version.all
14
+ @script_versions = Script::Version.where(org_id: current_user.org_id)
15
15
  end
16
16
 
17
17
  # SHOW
@@ -33,6 +33,7 @@ module Phcscriptcdnpro
33
33
  def create
34
34
  @script_version = Script::Version.new(script_version_params)
35
35
  @script_version.user_id = current_user.id
36
+ @script_version.org_id = current_user.org_id
36
37
  if @script_version.save
37
38
  redirect_to script_versions_url, :flash => { :success => 'Version was successfully created.' }
38
39
  else
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "74.0.0"
2
+ VERSION = "75.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 74.0.0
4
+ version: 75.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-18 00:00:00.000000000 Z
11
+ date: 2019-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails