8000 Fix routes access verification by AXeL-dev · Pull Request #23 · izmjs/izmjs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix routes access verification #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

AXeL-dev
Copy link
Contributor
@AXeL-dev AXeL-dev commented Mar 3, 2021

Fixes #22.

@@ -173,7 +176,7 @@ module.exports = (app, db, config) => {
}

// Add the isAllowed middleware to all subroutes
allMiddlwares.unshift(isAllowed(iam));
Copy link
Contributor Author
@AXeL-dev AXeL-dev Mar 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iam is an empty mongoose model declared on line 21, & isAllowed function was accepting no parameters but was receiving the iam param which is kind of weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Routes / IAMS issue
1 participant
0