added a single test for checking if a file should be shown or not

This commit is contained in:
Rudi Grinberg 2012-11-05 10:08:29 -05:00
parent 311c88a8a2
commit aa9a6691f2
1 changed files with 5 additions and 0 deletions

View File

@ -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() );