added a single test for checking if a file should be shown or not
This commit is contained in:
parent
311c88a8a2
commit
aa9a6691f2
|
@ -41,6 +41,11 @@ class CcFiles extends BaseCcFiles {
|
|||
return $this;
|
||||
}
|
||||
|
||||
// returns true if the file exists and is not hidden
|
||||
public function displayable() {
|
||||
return $this->getDbFileExists() && !$this->getDbHidden();
|
||||
}
|
||||
|
||||
public function reassignTo($user)
|
||||
{
|
||||
$this->setDbOwnerId( $user->getDbId() );
|
||||
|
|
Loading…
Reference in New Issue