blob: cbf1e3e5e86e9d26be39b2cc677e9c1f44bdfd19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
// Check if we are a user
OCP\JSON::callCheck();
OC_JSON::checkLoggedIn();
$l=OC_L10N::get('core');
$groupname = $_POST["groupname"];
// Return Success story
// TODO : make changes to the API to allow this.
// setGroupname doesnt exist yet.
if(OC_Group::setGroupname($groupname)) {
OC_JSON::success(
array("data" => array(
"message" => $l->t('Group name has been changed.'),
"groupname" => $groupname,
)
)
);
} else {
OC_JSON::error(array("data" => array( "message" => $l->t("Unable to change group name"))));
}
|