mirror of
https://github.com/redmine/redmine.git
synced 2026-09-02 02:37:25 +02:00
Remove unused method addable_watcher_users from acts_as_watchable.rb (#43429).
git-svn-id: https://svn.redmine.org/redmine/trunk@24215 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -51,15 +51,6 @@ module Redmine
|
||||
base.extend ClassMethods
|
||||
end
|
||||
|
||||
# Returns an array of users that are proposed as watchers
|
||||
def addable_watcher_users
|
||||
users = self.project.principals.assignable_watchers.sort - self.watcher_users
|
||||
if respond_to?(:visible?)
|
||||
users.reject! {|user| user.is_a?(User) && !visible?(user)}
|
||||
end
|
||||
users
|
||||
end
|
||||
|
||||
# array of watchers that the given user is allowed to see
|
||||
def visible_watcher_users(user = User.current)
|
||||
if user.allowed_to?(:"view_#{self.class.name.underscore}_watchers", project)
|
||||
|
||||
Reference in New Issue
Block a user