minetest.check_player_privs - Uberi/MineTest-API GitHub Wiki
privs is a table {priv1=true,...}
returns bool, missing_privs
[boolean](../type/boolean.html), [table](../type/table.html) check_player_privs([string](../type/string.html) name, [table](../type/table.html) privs)
Example 1:
local can_access = minetest.check_player_privs("foobar", {server=true})
Example 2:
local can_access, missing_privs = minetest.check_player_privs("foobar", {server=true,foo=true})