Ticket #4205 (closed Bug: fixed)

Opened 7 years ago

Last modified 3 years ago

"Add to favorites" permission wrong

Reported by: Anonymous User Owned by:
Priority: trivial Milestone: 2.1
Component: Infrastructure Version:
Severity: Keywords:
Cc:

Description

Since the "Add to favourites" document_action depends on the member's home folder, the condition in portal_actions should be

python:portal.portal_membership.getMembersFolder()

not just "member".

Change History

comment:1 Changed 7 years ago by tiran

getMembersFolder returns Members/

you want python:portal.portal_membership.getHomeFolder() is not None

w/o is not None it could be a *very* expensive operation!

comment:2 Changed 7 years ago by DannyB

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

Fixed.

comment:3 Changed 3 years ago by hannosch

  • Component changed from Permissions to Infrastructure
Note: See TracTickets for help on using tickets.