mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Check the permission when running the trash
This commit is contained in:
parent
81f9727fd9
commit
61e0437d9e
3 changed files with 11 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue