Menu

#64 TemporaryDocument lacks security context

open
nobody
5
2011-04-05
2011-04-05
No

in hidewhen_frmProjectFinance_isPlominoManager_formula
AttributeError: getCurrentUserRights
Context is <TemporaryDocument> 93184bb47ea6b57c6074870e4501d7a3
Code :
4: is_manager = "PlominoManager" in plominoDocument.getCurrentUserRights()
5: return not is_manager

Discussion

  • Eric Brehault

    Eric Brehault - 2011-04-11

    true, because it does not acquire correctly from the db

    wiser approach:
    is_manager = "PlominoManager" in plominoDocument.getParentDatabase().getCurrentUserRights()

     
  • Jean Jordaan

    Jean Jordaan - 2011-04-11

    It's not possible to always give TemporaryDocument a security context using __of__?
    When you create a form, you don't always know whether it will be used in a TemporaryDocument, and start to break.

     

Log in to post a comment.

MongoDB Logo MongoDB