assertSelfScope function
Implementation
void assertSelfScope(UserContext ctx, String ownerId) {
if (ctx.userId != ownerId) {
throw ForbiddenException('User cannot access another user\'s data');
}
}
void assertSelfScope(UserContext ctx, String ownerId) {
if (ctx.userId != ownerId) {
throw ForbiddenException('User cannot access another user\'s data');
}
}