Changeset 2555 for WAeUP_SRP


Ignore:
Timestamp:
6 Nov 2007, 15:04:24 (17 years ago)
Author:
joachim
Message:

set protection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2548 r2555  
    342342###)
    343343
    344     security.declareProtected(View,'getCredential') ###(
     344    security.declareProtected(ModifyPortalContent,'getCredential') ###(
    345345    def getCredential(self,student_id):
    346346        "return a student password"
    347347        student_entry = getattr(self.portal_directories.students,student_id,None)
     348        if not self.isStaff():
     349            return None
    348350        if student_entry is None:
    349351            return None
     
    369371    ###)
    370372
    371     security.declareProtected(View,'doCommit') ###(
     373    security.declareProtected(ModifyPortalContent,'doCommit') ###(
    372374    def doCommit(self,logger=None):
    373375        "commit some transactions"
Note: See TracChangeset for help on using the changeset viewer.