mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 07:42:11 +09:00
Prevent renaming or deleting the default scrap folder
This commit is contained in:
parent
25b6e71cf4
commit
645902fc41
6 changed files with 24 additions and 2 deletions
|
|
@ -308,6 +308,10 @@ class memberController extends member
|
|||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
if(array_first($output->data)->name === '/DEFAULT/')
|
||||
{
|
||||
return new Object(-1, 'msg_folder_is_default');
|
||||
}
|
||||
|
||||
// Check existing folder with same name
|
||||
$args = new stdClass;
|
||||
|
|
@ -354,6 +358,10 @@ class memberController extends member
|
|||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
if(array_first($output->data)->name === '/DEFAULT/')
|
||||
{
|
||||
return new Object(-1, 'msg_folder_is_default');
|
||||
}
|
||||
|
||||
// Check that the folder is empty
|
||||
$args = new stdClass;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue