mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
lint: Run eslint --fix
on src/
This commit is contained in:
parent
b8d07a42eb
commit
8e5fd19db2
109 changed files with 9061 additions and 10572 deletions
|
@ -1,4 +1,4 @@
|
|||
var securityManager = require('./db/SecurityManager');
|
||||
const securityManager = require('./db/SecurityManager');
|
||||
|
||||
// checks for padAccess
|
||||
module.exports = async function (req, res) {
|
||||
|
@ -7,7 +7,7 @@ module.exports = async function (req, res) {
|
|||
const accessObj = await securityManager.checkAccess(
|
||||
req.params.pad, req.cookies.sessionID, req.cookies.token, user);
|
||||
|
||||
if (accessObj.accessStatus === "grant") {
|
||||
if (accessObj.accessStatus === 'grant') {
|
||||
// there is access, continue
|
||||
return true;
|
||||
} else {
|
||||
|
@ -19,4 +19,4 @@ module.exports = async function (req, res) {
|
|||
// @TODO - send internal server error here?
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue