Add seed data to seed.js

good for getting others up to speed
This commit is contained in:
Kurt Hutten
2020-11-09 20:43:59 +11:00
parent a9ccfe5352
commit 31be14e8b4
3 changed files with 105 additions and 0 deletions

View File

@@ -141,4 +141,8 @@ export const requireAuth = ({ role } = {}) => {
) {
throw new ForbiddenError("You don't have access to do that.")
}
if(context.currentUser?.sub === '5cea3906-1e8e-4673-8f0d-89e6a963c096') {
throw new ForbiddenError("That's a local admin ONLY.")
}
}