We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f342464 commit 1aa3795Copy full SHA for 1aa3795
1 file changed
school_data_hub_server/lib/src/_features/admin/endpoints/admin_endpoint.dart
@@ -10,12 +10,11 @@ import 'package:serverpod_auth_server/serverpod_auth_server.dart' as auth;
10
/// The endpoint for admin operations.
11
/// This endpoint requires the user to be logged in and have admin scope.
12
class AdminEndpoint extends Endpoint {
13
- // TODO: Uncomment this in production!
14
- // @override
15
- // bool get requireLogin => true;
+ @override
+ bool get requireLogin => true;
16
17
18
- // Set<Scope> get requiredScopes => {Scope.admin};
+ Set<Scope> get requiredScopes => {Scope.admin};
19
20
Future<User> createUser(
21
Session session, {
0 commit comments