fix(server): require local admin account (#1070)

This commit is contained in:
Jason Rasmussen
2022-12-09 15:53:11 -05:00
committed by GitHub
parent 3bb103c6b6
commit 14889e7d85
14 changed files with 119 additions and 38 deletions

View File

@@ -335,7 +335,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **getUserCount**
> UserCountResponseDto getUserCount()
> UserCountResponseDto getUserCount(admin)
@@ -344,9 +344,10 @@ No authorization required
import 'package:openapi/api.dart';
final api_instance = UserApi();
final admin = true; // bool |
try {
final result = api_instance.getUserCount();
final result = api_instance.getUserCount(admin);
print(result);
} catch (e) {
print('Exception when calling UserApi->getUserCount: $e\n');
@@ -354,7 +355,10 @@ try {
```
### Parameters
This endpoint does not need any parameter.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**admin** | **bool**| | [optional] [default to false]
### Return type