* @throws OCSException
*/
public function getGroupUsers(string $groupId): DataResponse {
+ $groupId = urldecode($groupId);
+
$user = $this->userSession->getUser();
$isSubadminOfGroup = false;
* @throws OCSException
*/
public function getGroupUsersDetails(string $groupId, string $search = '', int $limit = null, int $offset = 0): DataResponse {
+ $groupId = urldecode($groupId);
$currentUser = $this->userSession->getUser();
// Check the group exists
* @throws OCSException
*/
public function updateGroup(string $groupId, string $key, string $value): DataResponse {
+ $groupId = urldecode($groupId);
+
if ($key === 'displayname') {
$group = $this->groupManager->get($groupId);
if ($group->setDisplayName($value)) {
* @throws OCSException
*/
public function deleteGroup(string $groupId): DataResponse {
+ $groupId = urldecode($groupId);
+
// Check it exists
if(!$this->groupManager->groupExists($groupId)){
throw new OCSException('', 101);