From 3857fee1017e8dec164faa13a0ca01828b4d50f6 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Mon, 4 Feb 2008 21:07:39 +0000 Subject: Adding the beingings of the authorization items. Also adding some of the updates to the Autentication. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@689 ab2d0c66-481e-0410-8bed-d214d4d58bed --- app/acf-util/roles-controller.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/acf-util/roles-controller.lua (limited to 'app/acf-util/roles-controller.lua') diff --git a/app/acf-util/roles-controller.lua b/app/acf-util/roles-controller.lua new file mode 100644 index 0000000..b8fa7f4 --- /dev/null +++ b/app/acf-util/roles-controller.lua @@ -0,0 +1,20 @@ +-- Roles/Group functions + +module (..., package.seeall) + +--require ("session") + +mvc.on_load = function(self, parent) + if (self.worker[self.conf.action] == nil ) or ( self.conf.action == "init" ) then + self.worker[self.conf.action] = list_redir(self) + end + --logit ("logon.mvc.on_load activated") + end + +read = function(self) + return( {read= self.model:read(clientdata.sessionid)}) +end + +getlist = function(self) + return( { contlist = self.model:getcont(self)}) +end -- cgit v1.2.3