diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-11 13:08:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-11 13:08:52 +0000 |
commit | bdd3ccf8e52c69d2b6e16e7230a1b8f9a6c69e60 (patch) | |
tree | 1571b147765d42bccab602cdd9a79499829de612 /db/migrate/20141109112308_add_roles_users_visibility.rb | |
parent | 140ca9532c1c12b7ff710c076c6985dce18500e4 (diff) | |
download | redmine-bdd3ccf8e52c69d2b6e16e7230a1b8f9a6c69e60.tar.gz redmine-bdd3ccf8e52c69d2b6e16e7230a1b8f9a6c69e60.zip |
Adds a role setting for controlling visibility of users: all or members of visible projects (#11724).
git-svn-id: http://svn.redmine.org/redmine/trunk@13584 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/20141109112308_add_roles_users_visibility.rb')
-rw-r--r-- | db/migrate/20141109112308_add_roles_users_visibility.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20141109112308_add_roles_users_visibility.rb b/db/migrate/20141109112308_add_roles_users_visibility.rb new file mode 100644 index 000000000..05c4b6cff --- /dev/null +++ b/db/migrate/20141109112308_add_roles_users_visibility.rb @@ -0,0 +1,9 @@ +class AddRolesUsersVisibility < ActiveRecord::Migration + def self.up + add_column :roles, :users_visibility, :string, :limit => 30, :default => 'all', :null => false + end + + def self.down + remove_column :roles, :users_visibility + end +end |