mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
12 lines
305 B
Lua
12 lines
305 B
Lua
local Permissions = {}
|
|
|
|
function Permissions.can_post(user)
|
|
return user and (user.role == "user" or user.role == "admin" or user.role == "god")
|
|
end
|
|
|
|
function Permissions.can_moderate(user)
|
|
return user and (user.role == "admin" or user.role == "god" or user.role == "supergod")
|
|
end
|
|
|
|
return Permissions
|