OC-Tsuki/ksrc/acl.lua

21 lines
312 B
Lua
Raw Normal View History

2020-05-24 15:06:37 +10:00
local acl = {}
do
local acl = struct({
meta = "B",
2020-06-02 16:14:26 +10:00
id = "H"
2020-05-24 15:06:37 +10:00
})
local function acl_readstream(stream)
2020-06-02 16:14:26 +10:00
local a = acl(stream:read(#acl))
local perm = stream:read(a.meta & 0x3f)
local
end
function acl.read(stream, dperm, gid, uid)
2020-05-24 15:06:37 +10:00
end
2020-06-02 16:14:26 +10:00
function _acl:get_effective_perm(id, group, perm)
2020-05-24 15:06:37 +10:00
end
end