requireOwnership method
Requires ownership of a resource.
Implementation
void requireOwnership(dynamic resourceOwnerId, [String? message]) {
requireAuth();
if (!ownsResource(resourceOwnerId)) {
throw AuthException(
message ?? 'Access denied: not the owner',
statusCode: 403,
);
}
}