Commit 84eb4654 authored by Nicolas Delaby's avatar Nicolas Delaby

Declare security for getDocumentValue mthod

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29597 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a65ed1ed
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2004-2009 Nexedi SA and Contributors. All Rights Reserved. # Copyright (c) 2004-2009 Nexedi SA and Contributors. All Rights Reserved.
...@@ -422,6 +423,7 @@ class NotificationTool(BaseTool): ...@@ -422,6 +423,7 @@ class NotificationTool(BaseTool):
""" """
return self.getPortalEventTypeList() return self.getPortalEventTypeList()
security.declareProtected(Permissions.AccessContentsInformation, 'getDocumentValue')
def getDocumentValue(self, **kw): def getDocumentValue(self, **kw):
""" """
Returns the last version of a Notification Document in selected Language. Returns the last version of a Notification Document in selected Language.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment