Issue invite token and send invitation email on invite request
This commit is contained in:
1 parent
f1334d1c5e
commit
610d9228da
4 files changed
+32
-3
No files matched your search
@@ -5,7 +5,6 @@ const joi = require("joi");
|
||||
//****************************************
|
||||
|
||||
const roleValidatior = (role) => (value, helpers) => {
|
||||
console.log(role);
|
||||
if (!value.includes(role)) {
|
||||
throw new joi.ValidationError(`You do not have ${role} authorization`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user