We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c21bd2 commit eeb9061Copy full SHA for eeb9061
apps/files/lib/Command/TransferOwnership.php
@@ -87,6 +87,16 @@ protected function configure() {
87
}
88
89
protected function execute(InputInterface $input, OutputInterface $output): int {
90
+
91
+ /**
92
+ * Check if source and destination users are same. If they are same then just ignore the transfer.
93
+ */
94
95
+ if ($input->getArgument(('source-user')) === $input->getArgument('destination-user')) {
96
+ $output->writeln("<error>Kindly check the source and destination users, as they are same.</error>");
97
+ return 1;
98
+ }
99
100
$sourceUserObject = $this->userManager->get($input->getArgument('source-user'));
101
$destinationUserObject = $this->userManager->get($input->getArgument('destination-user'));
102
0 commit comments