Skip to content

Commit 1aa3795

Browse files
repair admin endpoint
1 parent f342464 commit 1aa3795

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

school_data_hub_server/lib/src/_features/admin/endpoints/admin_endpoint.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ import 'package:serverpod_auth_server/serverpod_auth_server.dart' as auth;
1010
/// The endpoint for admin operations.
1111
/// This endpoint requires the user to be logged in and have admin scope.
1212
class AdminEndpoint extends Endpoint {
13-
// TODO: Uncomment this in production!
14-
// @override
15-
// bool get requireLogin => true;
13+
@override
14+
bool get requireLogin => true;
1615

17-
// @override
18-
// Set<Scope> get requiredScopes => {Scope.admin};
16+
@override
17+
Set<Scope> get requiredScopes => {Scope.admin};
1918

2019
Future<User> createUser(
2120
Session session, {

0 commit comments

Comments
 (0)