Ticket #8403 (closed Bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Portlets the user doesn't have permissions to add appear in the "add portlet" dropdown

Reported by: esteele Owned by: optilude
Priority: minor Milestone: 3.3
Component: Infrastructure Keywords:
Cc:

Description

Because the collection and static portlets don't use the same permissions as those from plone.app.portlets, it's possible to get to the "manage portlets" view. Selecting either of those two from the "add portlet" dropdown throws an insufficient privileges message.

The plone.app.portlets uses "Portlets: Manage Portlets", plone.portlet.collection uses "Add Collection Portlet", and plone.portlet.static uses "cmf.ManagePortal". Seems like the last should either use "manage portlets" or something less general.

Change History

comment:1 Changed 3 years ago by catherine_w

See also the related ticket #8409

comment:2 Changed 3 years ago by rockdj

See also Ticket #8510 as well.

comment:3 Changed 3 years ago by optilude

The user is not the owner of the dashboard's context - the dashboard's context is the Plone site root.

There's a custom permission for adding collection portlets (and, in Plone 3.3 with the bugfix that's about to come here, for static text portlets too). You can grant this to Member or whatever you want.

comment:4 Changed 3 years ago by optilude

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

(In [26135]) Use a proper permission. Fixes #8403.

comment:5 Changed 3 years ago by hannosch

  • Component changed from Portlets to Infrastructure

comment:6 Changed 3 years ago by hannosch

  • Milestone changed from 3.x to 3.3
Note: See TracTickets for help on using tickets.