Can't access a folder under watch, but works again when unwatching the folder #1469
This commit is contained in:
parent
6b940757cc
commit
4120744315
@ -101,7 +101,7 @@ class DmsfFolder < ApplicationRecord
|
||||
|
||||
before_create :default_values
|
||||
|
||||
def visible?
|
||||
def visible?(_user = User.current)
|
||||
return DmsfFolder.visible.exists?(id: id) if respond_to?(:type) && /^folder/.match?(type)
|
||||
|
||||
true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user