Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#7290 closed defect (fixed)

Plugin should check MYPAGE_VIEW also in process_request

Reported by: Mitar Owned by: dgc
Priority: normal Component: TracMyPagePlugin
Severity: normal Keywords:
Cc: Mitar Trac Release: 0.11

Description

Plugin should check MYPAGE_VIEW also in process_request. Here is my patch:

--- MyPagePlugin.py.orig	2010-06-24 16:48:29.000000000 +0200
+++ MyPagePlugin.py	2010-06-24 16:49:35.000000000 +0200
@@ -34,6 +34,8 @@
 		return False
 
 	def process_request(self, req):
+		req.perm.require('MYPAGE_VIEW')
+
 		url = self.mypage_url(req)
 		self.log.debug('process_request: %s' % url)
 		if req.path_info == '/me':

Attachments (0)

Change History (2)

comment:1 Changed 14 years ago by dgc

Resolution: fixed
Status: newclosed

comment:2 Changed 14 years ago by Ryan J Ollos

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain dgc.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.