1
|
require_relative 'lib/itgn_module'
|
2
|
|
3
|
Redmine::Plugin.register :itgn_cl do
|
4
|
name 'ITGN Consent Library plugin'
|
5
|
author 'Guus Teley'
|
6
|
description "This plugin for Redmine provides a library store for data subjects' consent for processing personal data"
|
7
|
version '3.2'
|
8
|
url 'http://www.itgn.nl/itgn_cl'
|
9
|
author_url 'https://www.teley.nl/'
|
10
|
menu :admin_menu, :itgn_cl, {:controller => 'menu', :action => 'index'}, :caption => 'ITGN Consent Library'
|
11
|
# Restrict access to admin and permitted groups
|
12
|
menu :application_menu, :itgn_cl, { :controller => 'menu', :action => 'index' }, :caption => 'Consent Library', :if => Proc.new {
|
13
|
access_level() > 0
|
14
|
}
|
15
|
settings :default => {
|
16
|
:rp_name => 'ACME Corporation',
|
17
|
:rp_address => 'Desert Lane 987654321, Nevada',
|
18
|
:rp_email => 'w.e.coyote@acme.corp',
|
19
|
:rp_DPO_name => 'D.P.Overlord',
|
20
|
:rp_DPO_email => 'dpo_overlord@acme.corp',
|
21
|
:create_activity => 0,
|
22
|
:num_per_page => 20,
|
23
|
:activity_user => nil,
|
24
|
:activity_project => nil,
|
25
|
:activity_tracker => nil
|
26
|
},:partial => 'setup/itgn_cl_setup'
|
27
|
Rails::logger.info("Registered ITGN_CL Plugin")
|
28
|
Rails::logger.info("Rails::Application.autoload_paths")
|
29
|
end
|
30
|
|
31
|
=begin
|
32
|
Version 1.3.5 : Using the global var $VERSION gave an error in the Import/Export plugin. Changed it to MY_VERSION
|
33
|
Version 1.4.2 : When initial Projects are not available, check for nil? and give error
|
34
|
Version 1.4.3 : Added Responsible Party's data within config page
|
35
|
Added method for retrieving RP data
|
36
|
Changed OpenSSL key length to fixed 32
|
37
|
Version 1.5.0 : Made Rails 4.0 compatible
|
38
|
Version 1.5.1 : Expanded list of seeds
|
39
|
Version 1.5.2 : Fixed problem with non-existing Project-ID in settings page
|
40
|
Version 1.6.0 : Moved AES encryption key to config/initiaizers and changed according migrate routine
|
41
|
Changed database fields to administer for data subjects => Didn't work!
|
42
|
Version 2.1.0 : Added support for multiple email addresses per data subject
|
43
|
Version 2.1.1 : Some minor layout issues
|
44
|
Version 2.1.2 : Added query_email function to DataSubject + route
|
45
|
Version 2.1.3 : Addedd API function to create a Data Subject
|
46
|
Version 2.2.0 : Added DPO info to config and API returned data
|
47
|
Version 2.2.1 : Responsible Party returned default data (not actual one)
|
48
|
Version 2.2.2 : Support for multiple forms (in settings) to go to its own process (API parameter 'form')
|
49
|
version 2.2.3 : Fixed error in setting defaults
|
50
|
version 3.0.0 : Add support for attachments (evidence files)
|
51
|
version 3.0.1 : Some fixes
|
52
|
version 3.0.2 : Fixed error in Query form (jQuery wouldn't execute ajax:complete)
|
53
|
version 3.1 : Added check for activity and returning activity_id when creating activity
|
54
|
version 3.2 : Fixed issues with migration to Redmine 5.x/Rails 7
|
55
|
=end
|