Removed timezone + API improvements

This commit is contained in:
2020-06-24 16:09:04 +02:00
parent 73d20b4b5c
commit 9904be687f
11 changed files with 48 additions and 44 deletions

View File

@@ -177,8 +177,11 @@ namespace Api\Groups {
}
$id = $this->getParam("uid");
$sql = $this->user->getSQL();
if (in_array($id, DEFAULT_GROUPS)) {
return $this->createError("You cannot delete a default group.");
}
$sql = $this->user->getSQL();
$res = $sql->select($sql->count())
->from("Group")
->where(new Compare("uid", $id))