Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 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: mmitar@… 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 4 years ago by dgc

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 4 years ago by rjollos

Add Comment

Modify Ticket

Action
as closed The owner will remain dgc.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.