mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 07:14:56 +00:00
14 lines
213 B
Lua
14 lines
213 B
Lua
local M = {}
|
|
|
|
function M.can_create_tournament(user)
|
|
local role = user.role or "public"
|
|
local allowed = {
|
|
admin = true,
|
|
god = true,
|
|
supergod = true
|
|
}
|
|
return allowed[role] == true
|
|
end
|
|
|
|
return M
|