From 5ce46529b1436a1b5d980a6335025e7e6552fd8a Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 19 Jan 2004 23:57:47 +0000 Subject: [PATCH] - changed template to remove duplicate display table, using built-in permission checks now - fixed permissions settings for anonymous to make view work again for them git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2046 57a73879-2fb5-44c3-a270-3262357dd7e2 --- templates/classic/dbinit.py | 13 +-- templates/classic/html/issue.item.html | 120 +++++++++---------------- 2 files changed, 50 insertions(+), 83 deletions(-) diff --git a/templates/classic/dbinit.py b/templates/classic/dbinit.py index 8905e3c..83e9386 100644 --- a/templates/classic/dbinit.py +++ b/templates/classic/dbinit.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: dbinit.py,v 1.2 2003-11-10 03:56:39 richard Exp $ +# $Id: dbinit.py,v 1.3 2004-01-19 23:57:47 richard Exp $ import os @@ -132,11 +132,11 @@ def open(name=None): # - Allow anonymous (new) users to register through the email gateway p = db.security.getPermission('Email Registration') db.security.addPermissionToRole('Anonymous', p) - # - Allow anonymous users access to the "issue" class of data - # Note: this also grants access to related information like files, - # messages, statuses etc that are linked to issues - p = db.security.getPermission('View', 'issue') - db.security.addPermissionToRole('Anonymous', p) + # - Allow anonymous users access to view issues (which implies being + # able to view all linked information too + for cl in 'issue', 'file', 'msg', 'keyword': + p = db.security.getPermission('View', cl) + db.security.addPermissionToRole('Anonymous', p) # - Allow anonymous users access to edit the "issue" class of data # Note: this also grants access to create related information like # files and messages etc that are linked to issues @@ -202,3 +202,4 @@ def init(adminpw): # vim: set filetype=python ts=4 sw=4 et si +#SHA: 92c54c05ba9f59453dc74fa9fdbbae34f7a9c077 diff --git a/templates/classic/html/issue.item.html b/templates/classic/html/issue.item.html index 2c516b4..28e1262 100644 --- a/templates/classic/html/issue.item.html +++ b/templates/classic/html/issue.item.html @@ -4,22 +4,17 @@ : -New Issue + New Issue Editing - -You are not allowed to view this page. - -
+ enctype="multipart/form-data" tal:attributes="action context/designator"> @@ -62,7 +57,7 @@ python:db.user.classhelp('username,realname,address', property='nosy', width='60 - +
Change Note