From 91bb555bc2c0f3f73f733d59fd703471a612e43b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= <gabriel@gpcf.eu>
Date: Wed, 17 Jul 2019 14:44:36 +0200
Subject: No longer require server priv for /at_sync_ndb

The check for server priv was hidden where no one would have expected
it.
---
 advtrains/nodedb.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua
index b17841c..37dc3f7 100644
--- a/advtrains/nodedb.lua
+++ b/advtrains/nodedb.lua
@@ -293,7 +293,7 @@ minetest.register_chatcommand("at_sync_ndb",
         privs = {train_operator=true}, 
         func = function(name, param)
 			return advtrains.pcall(function()
-				if not minetest.check_player_privs(name, {server=true}) and os.time() < ptime+30 then
+				if os.time() < ptime+30 then
 					return false, "Please wait at least 30s from the previous execution of /at_restore_ndb!"
 				end
 				local text = ndb.restore_all()
-- 
cgit v1.2.3