lib/Controller/LocalController.php 1 location
|
@@ 139-148 (lines=10) @@
|
| 136 |
|
* @return DataResponse |
| 137 |
|
* @throws OCSException |
| 138 |
|
*/ |
| 139 |
|
public function create(string $name, bool $personal = false, bool $local = false): DataResponse { |
| 140 |
|
try { |
| 141 |
|
$this->setCurrentFederatedUser(); |
| 142 |
|
$circle = $this->circleService->create($name, null, $personal, $local); |
| 143 |
|
|
| 144 |
|
return new DataResponse($this->serializeArray($circle)); |
| 145 |
|
} catch (Exception $e) { |
| 146 |
|
throw new OcsException($e->getMessage(), $e->getCode()); |
| 147 |
|
} |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
|
| 151 |
|
/** |
lib/Controller/AdminController.php 1 location
|
@@ 141-155 (lines=15) @@
|
| 138 |
|
* @return DataResponse |
| 139 |
|
* @throws OCSException |
| 140 |
|
*/ |
| 141 |
|
public function create( |
| 142 |
|
string $emulated, |
| 143 |
|
string $name, |
| 144 |
|
bool $personal = false, |
| 145 |
|
bool $local = false |
| 146 |
|
): DataResponse { |
| 147 |
|
try { |
| 148 |
|
$this->setLocalFederatedUser($emulated); |
| 149 |
|
$circle = $this->circleService->create($name, null, $personal, $local); |
| 150 |
|
|
| 151 |
|
return new DataResponse($this->serializeArray($circle)); |
| 152 |
|
} catch (Exception $e) { |
| 153 |
|
throw new OcsException($e->getMessage(), $e->getCode()); |
| 154 |
|
} |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
|
| 158 |
|
/** |