mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-23 21:56:57 +00:00
fix: oops, it's not puter.config here
abuse.js is not an extension, but I was treating it like an extension.
This commit is contained in:
@@ -17,10 +17,9 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
const APIError = require("../api/APIError");
|
||||
const config = require("../config");
|
||||
const { Context } = require("../util/context");
|
||||
|
||||
const config = puter.core.config;
|
||||
|
||||
const abuse = options => (req, res, next) => {
|
||||
if ( config.disable_abuse_checks ) {
|
||||
next(); return;
|
||||
|
||||
Reference in New Issue
Block a user