diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-14 11:01:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-14 11:01:21 +0000 |
commit | 91f39dea8f6250e01acf5fce3c1540f558044585 (patch) | |
tree | 6f68e1271514fdec1bb692c5c6f98da71021750b /lib | |
parent | f70f352bc57790d9481721fca86b7cbaaf6c44ff (diff) | |
download | redmine-91f39dea8f6250e01acf5fce3c1540f558044585.tar.gz redmine-91f39dea8f6250e01acf5fce3c1540f558044585.zip |
Add "me" value for logged users only.
git-svn-id: http://svn.redmine.org/redmine/trunk@16193 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/field_format.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb index dd467db8c..01ac75946 100644 --- a/lib/redmine/field_format.rb +++ b/lib/redmine/field_format.rb @@ -812,7 +812,11 @@ module Redmine end def query_filter_values(*args) - [["<< #{l(:label_me)} >>", "me"]] + super + values = [] + if User.current.logged? + values << ["<< #{l(:label_me)} >>", "me"] + end + values + super end end |