diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-04-24 20:31:58 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-04-24 20:31:58 +0000 |
commit | 2ac0d30c272dc9c36c81792f608e4f6ce231ba7e (patch) | |
tree | ce325a3c7c5614f634ea25e28bdaadedeadd791e /app/acf-util/roles-controller.lua | |
parent | f87baaa40bcc86b62759df6bf884ff53548f348c (diff) | |
download | acf-core-2ac0d30c272dc9c36c81792f608e4f6ce231ba7e.tar.bz2 acf-core-2ac0d30c272dc9c36c81792f608e4f6ce231ba7e.tar.xz |
Replaced all list_redir functions with redirect in mvc.lua, implemented a default_action string in each controller, removing the on_load functions
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1037 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/acf-util/roles-controller.lua')
-rw-r--r-- | app/acf-util/roles-controller.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/acf-util/roles-controller.lua b/app/acf-util/roles-controller.lua index 771c44e..b868924 100644 --- a/app/acf-util/roles-controller.lua +++ b/app/acf-util/roles-controller.lua @@ -2,6 +2,8 @@ module (..., package.seeall) +default_action = "read" + read = function(self) return ( { userid = self.sessiondata.userinfo.userid, roles = self.sessiondata.userinfo.roles, permissions = self.sessiondata.permissions } ) end |