dradis-plugins 3.14.0 → 3.19.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: 9b59c8ac23afa8e326afcf2ac00a1c3af10b78a70de26ee5c81bd8c09b521cd5
|
4
|
+
data.tar.gz: ebf3159be777913f9ab92ece537664ca21c845644dfb09dbe24450fd6594301c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a04647679992aeaae57c8d1428f2b460a9ea2c52404d0813e46f62a90655d13282c3b8a8746702b1173fd8fa38bce60c61fadd694c5fec5b8e7b79a527085f57
|
7
|
+
data.tar.gz: fa896e15fb5a71d1b0745a427aa77d3f4b3040e649d4f54437832261763ee2239e222fe2971065a9efc62eda63568ade70f36c71c29a0f3a669c943f379f3c6e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
## Dradis Framework 3.19 (September, 2020) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
## Dradis Framework 3.18 (July, 2020) ##
|
6
|
+
|
7
|
+
* Added PersistentPermissions module to dry up permissions endpoints.
|
8
|
+
|
9
|
+
## Dradis Framework 3.17 (May, 2020) ##
|
10
|
+
|
11
|
+
* No changes.
|
12
|
+
|
13
|
+
## Dradis Framework 3.16 (February, 2020) ##
|
14
|
+
|
15
|
+
* No changes.
|
16
|
+
|
17
|
+
## Dradis Framework 3.15 (November, 2019) ##
|
18
|
+
|
19
|
+
* Make ContentService Boards available in CE
|
20
|
+
|
1
21
|
## Dradis Framework 3.14 (August, 2019) ##
|
2
22
|
|
3
23
|
* Add node to boards
|
@@ -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
|
@@ -13,7 +13,11 @@ module Dradis::Plugins::ContentService
|
|
13
13
|
def create_board(args={})
|
14
14
|
name = args.fetch(:name, default_board_name)
|
15
15
|
node_id = args.fetch(:node_id, default_node_id)
|
16
|
-
Board.create(
|
16
|
+
Board.create(
|
17
|
+
name: name,
|
18
|
+
node_id: node_id,
|
19
|
+
project: project
|
20
|
+
)
|
17
21
|
end
|
18
22
|
|
19
23
|
private
|
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.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-04 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
|
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
126
|
- !ruby/object:Gem::Version
|
126
127
|
version: '0'
|
127
128
|
requirements: []
|
128
|
-
rubygems_version: 3.0.
|
129
|
+
rubygems_version: 3.0.1
|
129
130
|
signing_key:
|
130
131
|
specification_version: 4
|
131
132
|
summary: Plugin manager for the Dradis Framework project.
|