diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-05-23 14:20:00 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-05-23 14:20:00 +0000 |
commit | 7b91c2748fc30eb718bafef995f514d5f805d716 (patch) | |
tree | 1f1b3eb852be42ad9c4fc6d53560835cb8d28142 /openssl-controller.lua | |
parent | 5099733a041f8b625353c0563e09d092d69d7a57 (diff) | |
download | acf-openssl-7b91c2748fc30eb718bafef995f514d5f805d716.tar.bz2 acf-openssl-7b91c2748fc30eb718bafef995f514d5f805d716.tar.xz |
Mod openssl to restrict users to only see and delete their own requests.
Moved apk to apk-tools.
git-svn-id: svn://svn.alpinelinux.org/acf/openssl/trunk@1179 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openssl-controller.lua')
-rw-r--r-- | openssl-controller.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openssl-controller.lua b/openssl-controller.lua index 59918c1..af92ec5 100644 --- a/openssl-controller.lua +++ b/openssl-controller.lua @@ -104,6 +104,13 @@ deleterequest = function(self) redirect_to_referrer(self) end +-- Delete the specified request +deletemyrequest = function(self) + local cmdresult = self.model.deleterequest(self.clientdata.request, self.sessiondata.userinfo.userid) + self.sessiondata.cmdresult = cmdresult + redirect_to_referrer(self) +end + -- View certificate details viewcert = function(self) return self.model.viewcert(self.clientdata.cert) |