From 1cba270c1afe339daa944b429875e2b566bd447c Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 22 Nov 2005 01:15:07 +0000 Subject: [PATCH] protect "my" reports from other people git-svn-id: svn://svn.open-ils.org/ILS/trunk@2113 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/reporter/templates/stage3.ttk | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Open-ILS/src/reporter/templates/stage3.ttk b/Open-ILS/src/reporter/templates/stage3.ttk index eeb8c0c33a..012eb215b2 100644 --- a/Open-ILS/src/reporter/templates/stage3.ttk +++ b/Open-ILS/src/reporter/templates/stage3.ttk @@ -247,10 +247,12 @@ BLOCK view_stage3; WRAPPER html/cell style="border:solid gray 1px;"; INCLUDE anchor content='Refresh' href=CGI.url('-path', 1) _ '?id=' _ rpt.id; '   '; - INCLUDE anchor content='Run again' href=CGI.url('-path', 1) _ '?action=rerun&id=' _ rpt.id; - '   '; - INCLUDE anchor content='Delete' href=CGI.url('-path', 1) _ '?action=delete_stage3&id=' _ rpt.id; - '   '; + IF user.id == rpt.owner; + INCLUDE anchor content='Run again' href=CGI.url('-path', 1) _ '?action=rerun&id=' _ rpt.id; + '   '; + INCLUDE anchor content='Delete' href=CGI.url('-path', 1) _ '?action=delete_stage3&id=' _ rpt.id; + '   '; + END; END; END; END; @@ -321,8 +323,10 @@ BLOCK view_stage3; WRAPPER html/row; INCLUDE html/cell content="Actions" style="border:solid gray 1px;"; WRAPPER html/cell style="border:solid gray 1px;"; - INCLUDE anchor content='Delete' href=CGI.url('-path', 1) _ '?action=delete_output&output=' _ run.id; - '   '; + IF user.id == rpt.owner; + INCLUDE anchor content='Delete' href=CGI.url('-path', 1) _ '?action=delete_output&output=' _ run.id; + '   '; + END; END; END; END; -- 2.43.2