Skip to content

Conversation

@aayushgupta05
Copy link
Member

Related frontend pull request: PR#30

return tag.topics;
return tag;
} catch (err) {
console.log(err);
Copy link
Member

Choose a reason for hiding this comment

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

=> code observability

module.exports = async (req, res, next) => {
const organization = await Organization.findOne({}).lean();
if (organization && organization.isUnderMaintenance) {
if (req.headers["access-level"] == -1 || (req.currentUser && req.currentUser.isAdmin)) {
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Since it is no longer recommended or is a necessity to prefix custom headers with X-; this name will be good to go

throw new Error(adminAccessError);
}
} catch (err) {
console.log(err);
Copy link
Member

Choose a reason for hiding this comment

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

CO

@vaibhavdaren vaibhavdaren merged commit c033f6b into codeuino:development Dec 10, 2020
@aayushgupta05 aayushgupta05 deleted the maintenanceMode branch December 10, 2020 14:59
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.

2 participants