parent
69240afd7a
commit
e10f46d978
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
// Init owncloud
|
||||
require_once('../../lib/base.php');
|
||||
require_once '../../lib/base.php';
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
// Check if we are a user
|
||||
|
@ -51,7 +51,10 @@ try {
|
|||
}
|
||||
OC_Group::addToGroup( $username, $i );
|
||||
}
|
||||
OC_JSON::success(array("data" => array( "username" => $username, "groups" => implode( ", ", OC_Group::getUserGroups( $username )))));
|
||||
OC_JSON::success(array("data" =>
|
||||
array(
|
||||
"username" => $username,
|
||||
"groups" => implode( ", ", OC_Group::getUserGroups( $username )))));
|
||||
} catch (Exception $exception) {
|
||||
OC_JSON::error(array("data" => array( "message" => $exception->getMessage())));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue