stripe
This commit is contained in:
1 parent
01c0e9ef4d
commit
1b162578c2
22 files changed
+450
-72
No files matched your search
@@ -61,8 +61,6 @@ const verifyOrgPermission = (resourceActions: string[]) => {
|
||||
return next(new ApiError("User not authenticated", 401));
|
||||
}
|
||||
|
||||
console.log(req.user);
|
||||
|
||||
const orgPermissions = userContext.roles?.orgRole?.permissions || [];
|
||||
const allowed = hasPermission(orgPermissions, resourceActions);
|
||||
if (!allowed) {
|
||||
|
||||
Reference in new issue
Block a user