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