dradis-plugins 3.15.0 → 3.20.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aaba8d29c79bfa7129959bdc1a9bb03e07358d3936e339575cd38f4f4dd2e81
|
4
|
+
data.tar.gz: c08470100b11f277eb0a725f952f74ecf4ab933c60629609cb50614b58d51f5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ccc0ef7eed4bf055a4bcc2b8e6728c6cd74da76dc84efcc45c92029a625d44336b4fb441c457ba6c7a587b6c8f23439a48004c50c55622378cafa6dcf3355db
|
7
|
+
data.tar.gz: adb29b7e8aad006bd7abe0e5a2e13a433db920cee36a520aad449d03ec67b9357cfd243e7745dbe646f3d6f4e0ffe611b2ac6af601a265a424327007204aa684
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
## Dradis Framework 3.20 (December, 2020) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
## Dradis Framework 3.19 (September, 2020) ##
|
6
|
+
|
7
|
+
* No changes.
|
8
|
+
|
9
|
+
## Dradis Framework 3.18 (July, 2020) ##
|
10
|
+
|
11
|
+
* Added PersistentPermissions module to dry up permissions endpoints.
|
12
|
+
|
13
|
+
## Dradis Framework 3.17 (May, 2020) ##
|
14
|
+
|
15
|
+
* No changes.
|
16
|
+
|
17
|
+
## Dradis Framework 3.16 (February, 2020) ##
|
18
|
+
|
19
|
+
* No changes.
|
20
|
+
|
1
21
|
## Dradis Framework 3.15 (November, 2019) ##
|
2
22
|
|
3
23
|
* Make ContentService Boards available in CE
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module Dradis
|
2
|
+
module Plugins
|
3
|
+
module PersistentPermissions
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
def update
|
7
|
+
@user = User.authors.find(params[:id])
|
8
|
+
|
9
|
+
Permission.transaction do
|
10
|
+
Permission.where(component: self.class.component_name, user_id: params[:id]).destroy_all
|
11
|
+
|
12
|
+
permissions_params[:permissions]&.each do |permission|
|
13
|
+
# Validate the permission being created is a valid value
|
14
|
+
next unless self.class.permissions_validation.call(permission) if self.class.permissions_validation
|
15
|
+
|
16
|
+
Permission.create!(
|
17
|
+
component: self.class.component_name,
|
18
|
+
name: permission,
|
19
|
+
user_id: params[:id]
|
20
|
+
)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
redirect_to main_app.edit_admin_user_permissions_path(params[:id]), notice: "#{@user.name}'s permissions have been updated."
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def permissions_params
|
30
|
+
params.require(self.class.component_name).permit(permissions: [])
|
31
|
+
end
|
32
|
+
|
33
|
+
class_methods do
|
34
|
+
attr_accessor :component_name, :permissions_validation
|
35
|
+
|
36
|
+
def permissible_tool(component_name, opts = {})
|
37
|
+
self.component_name = component_name
|
38
|
+
self.permissions_validation = opts[:validation]
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- LICENSE
|
68
68
|
- README.md
|
69
69
|
- Rakefile
|
70
|
+
- app/controllers/concerns/dradis/plugins/persistent_permissions.rb
|
70
71
|
- app/controllers/dradis/plugins/export/base_controller.rb
|
71
72
|
- dradis-plugins.gemspec
|
72
73
|
- lib/dradis-plugins.rb
|
@@ -110,7 +111,7 @@ homepage: http://dradisframework.org
|
|
110
111
|
licenses:
|
111
112
|
- GPL-2
|
112
113
|
metadata: {}
|
113
|
-
post_install_message:
|
114
|
+
post_install_message:
|
114
115
|
rdoc_options: []
|
115
116
|
require_paths:
|
116
117
|
- lib
|
@@ -125,8 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
126
|
- !ruby/object:Gem::Version
|
126
127
|
version: '0'
|
127
128
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
129
|
-
signing_key:
|
129
|
+
rubygems_version: 3.2.4
|
130
|
+
signing_key:
|
130
131
|
specification_version: 4
|
131
132
|
summary: Plugin manager for the Dradis Framework project.
|
132
133
|
test_files:
|