Fix a buttload of things
This commit is contained in:
parent
bedf3afb61
commit
6570c3da6c
12 changed files with 59 additions and 51 deletions
|
|
@ -295,6 +295,16 @@ function handleDeleteChannel(req, res) {
|
|||
}
|
||||
|
||||
db.channels.lookup(name, function (err, channel) {
|
||||
if (err) {
|
||||
sendJade(res, "account-channels", {
|
||||
loggedIn: true,
|
||||
loginName: loginName,
|
||||
channels: [],
|
||||
deleteChannelError: err
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (channel.owner !== user.name && user.global_rank < 255) {
|
||||
db.channels.listUserChannels(loginName, function (err2, channels) {
|
||||
sendJade(res, "account-channels", {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
/**
|
||||
* web/webserver.js - functions for serving web content
|
||||
*
|
||||
* @author Calvin Montgomery <cyzon@cyzon.us>
|
||||
*/
|
||||
|
||||
var path = require("path");
|
||||
var net = require("net");
|
||||
var express = require("express");
|
||||
|
|
@ -179,8 +173,6 @@ function handleSocketConfig(req, res) {
|
|||
module.exports = {
|
||||
/**
|
||||
* Initializes webserver callbacks
|
||||
*
|
||||
* @param app - The express instance to initialize
|
||||
*/
|
||||
init: function (app) {
|
||||
app.use(express.json());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue