Open 'watched' folder throw internal error #1399
This commit is contained in:
parent
095bfa27d6
commit
0303a458cb
@ -99,7 +99,7 @@ class DmsfFolder < ActiveRecord::Base
|
||||
|
||||
before_create :default_values
|
||||
|
||||
def visible?
|
||||
def visible?(user=User.current)
|
||||
if self.respond_to?(:type)
|
||||
if /^folder/.match?(type)
|
||||
return DmsfFolder.visible.where(id: self.id).exists?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user