-
Notifications
You must be signed in to change notification settings - Fork 35
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
Feature/api backend managers #365
Conversation
@apinf/developers please review ASAP. |
} else { | ||
// User is not allowded to perform action | ||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some code duplicating under update
and remove
. As there gonna be some actions performing inside conditional statements, what do you think if using isBackendManager
method attached to user schema. So the conditional check would be ?
if (user.isBackendManager(backend_id)) {
// ...
}
Feature/api backend managers
@frenchbread good idea. |
No description provided.