]> source.dussan.org Git - redmine.git/commit
Makes user unwatch what he can no longer view after its permissions have changed...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 Dec 2009 12:39:22 +0000 (12:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 Dec 2009 12:39:22 +0000 (12:39 +0000)
commitf33231181f9591ee67577e229a8bf6de24516ba0
tree57bbc4338b9cf35cecf323565fefbf549ecfd14f
parentc31a6719735114c371e5da68eb3787b8713c5360
Makes user unwatch what he can no longer view after its permissions have changed (#3589).
A rake task (redmine:watchers:prune) is also added to prune existing watchers.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3167 e93f8b46-1217-0410-a6f0-8f06a7374b81
12 files changed:
app/models/board.rb
app/models/member.rb
app/models/member_role.rb
app/models/message.rb
app/models/watcher.rb
app/models/wiki.rb
app/models/wiki_page.rb
lib/tasks/watchers.rake [new file with mode: 0644]
test/fixtures/enabled_modules.yml
test/fixtures/messages.yml
test/unit/member_test.rb
test/unit/watcher_test.rb