summaryrefslogtreecommitdiffstats
path: root/app/acf-util/roles-model.lua
blob: b6e95fd8407c9de9c0907e0b40ef7336ea3b28f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- Roles/Group  model functions

require ("roles")

module (..., package.seeall)

getcont = function(self)
	--need to get a list of all the controllers
	controllers = roles.get_controllers(self)
	local table_m = {}
	for a,b in pairs(controllers) do
		table_m[b.sname] = {}
		temp = roles.get_controllers_func(self,b)
		for x,y in ipairs(temp) do
			table_m[b.sname][y] = {}
		end
	end

	return cfe({ type="table", value=table_m, label="All permissions" })
end