refactor: global namespace + admin pages UI
This commit is contained in:
1 parent
f203173c6c
commit
7acc4e9fed
61 files changed
+742
-507
No files matched your search
@@ -1,4 +1,4 @@
|
||||
/* global wiki */
|
||||
/* global WIKI */
|
||||
|
||||
/**
|
||||
* Authentication middleware
|
||||
@@ -7,7 +7,7 @@ module.exports = (req, res, next) => {
|
||||
// Is user authenticated ?
|
||||
|
||||
if (!req.isAuthenticated()) {
|
||||
if (wiki.config.auth.public !== true) {
|
||||
if (WIKI.config.auth.public !== true) {
|
||||
return res.redirect('/login')
|
||||
} else {
|
||||
// req.user = rights.guest
|
||||
|
||||
Reference in new issue
Block a user