Skip to content
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

Merged
merged 15 commits into from
Aug 18, 2015
Merged

Conversation

brylie
Copy link
Contributor

@brylie brylie commented Aug 14, 2015

No description provided.

@brylie
Copy link
Contributor Author

brylie commented Aug 14, 2015

@apinf/developers please review ASAP.

} else {
// User is not allowded to perform action
return false;
}
Copy link
Contributor

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)) {
    // ...
}

frenchbread added a commit that referenced this pull request Aug 18, 2015
@frenchbread frenchbread merged commit 5023479 into develop Aug 18, 2015
@frenchbread frenchbread deleted the feature/api-backend-managers branch August 18, 2015 11:42
@brylie
Copy link
Contributor Author

brylie commented Aug 18, 2015

@frenchbread good idea.

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.

None yet

2 participants