mirror of
https://github.com/MinetestForFun/mysql_auth.git
synced 2025-01-08 00:50:25 +01:00
Update admin's privs in the DB when calling get_auth (1-time)
This commit is contained in:
parent
09b4809eb8
commit
333fc8916e
4
init.lua
4
init.lua
@ -265,6 +265,10 @@ do
|
|||||||
privs[priv] = true
|
privs[priv] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if admin and not thismod.admin_get_auth_called then
|
||||||
|
thismod.admin_get_auth_called = true
|
||||||
|
thismod.auth_handler.set_privileges(name, privs)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
privs = minetest.string_to_privs(privs_str)
|
privs = minetest.string_to_privs(privs_str)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user