forked from gtt-project/redmine_privacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
28 lines (20 loc) · 760 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'redmine'
Rails.configuration.to_prepare do
RedminePrivacy.setup
end
Redmine::Plugin.register :redmine_privacy do
name 'Redmine Privacy Plugin'
author 'Jens Krämer, Georepublic'
author_url 'https://github.com/georepublic'
url 'https://github.com/gtt-project/redmine_privacy'
description 'Adds several privacy related options to Redmine'
version '1.3.2'
requires_redmine version_or_higher: '3.4.0'
settings default: { }, partial: 'redmine_privacy/settings'
project_module :privacy do
# this permission allows users to see other users
permission :view_users, {}, read: true
# this permission allows users to see same project member's displayname
permission :view_members_displayname, {}, read: true
end
end