Check the permission when running the trash

This commit is contained in:
BJRambo 2016-10-03 18:03:31 +09:00
parent 81f9727fd9
commit 61e0437d9e
3 changed files with 11 additions and 15 deletions

View file

@ -297,10 +297,13 @@ class boardController extends board
if($this->module_info->trash_use == 'Y')
{
// move the trash
$output = $oDocumentController->moveDocumentToTrash($oDocument);
if(!$output->toBool())
if($oDocument->isGranted() === true)
{
return $output;
$output = $oDocumentController->moveDocumentToTrash($oDocument);
if(!$output->toBool())
{
return $output;
}
}
}
else