Merge pull request #23113 from owncloud/allow-migrating-all-calendars-stable9
Allow to migrate calendars of all users
This commit is contained in:
commit
aeb480a8c3
|
@ -61,8 +61,8 @@ class MigrateCalendars extends Command {
|
|||
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
$this->service->setup();
|
||||
|
||||
if ($input->hasArgument('user')) {
|
||||
$user = $input->getArgument('user');
|
||||
$user = $input->getArgument('user');
|
||||
if (!is_null($user)) {
|
||||
if (!$this->userManager->userExists($user)) {
|
||||
throw new \InvalidArgumentException("User <$user> in unknown.");
|
||||
}
|
||||
|
|
|
@ -61,8 +61,8 @@ class SyncBirthdayCalendar extends Command {
|
|||
* @param OutputInterface $output
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
if ($input->hasArgument('user')) {
|
||||
$user = $input->getArgument('user');
|
||||
$user = $input->getArgument('user');
|
||||
if (!is_null($user)) {
|
||||
if (!$this->userManager->userExists($user)) {
|
||||
throw new \InvalidArgumentException("User <$user> in unknown.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue