mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
TEMPORARY update path for carddav testers
This commit is contained in:
parent
629c53353d
commit
b1b2b190d8
13
temporaryupdate.php
Normal file
13
temporaryupdate.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
// Init owncloud
|
||||
require_once('../../lib/base.php');
|
||||
$connector = new OC_Connector_Sabre_Principal;
|
||||
$users = OC_User::getUsers();
|
||||
|
||||
foreach($users as $user){
|
||||
$foo = $connector->getPrincipalByPath('principals/'.$user);
|
||||
if(!isset($foo)){
|
||||
OC_Connector_Sabre_Principal::addPrincipal(array('uid'=>$user));
|
||||
}
|
||||
}
|
||||
echo "done";
|
Loading…
Reference in New Issue
Block a user