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 +4 -4
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +2 -1
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d06d0c08b42e16636378da7769a33c511de16f8f80681033a9a3db4a2ed2f4c
|
4
|
+
data.tar.gz: d65ad94062ea83e40f00b1b12502e4206d0650fc7b701855c8106377fc8eaf5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
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:
|
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-
|
11
|
+
date: 2019-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|