On 20. Aug, 2013, at 13:24, Antonia Horincar wrote:

> Hi devs,
> 
> I am having some problems with IPermissionRequestor, I have noticed it does
> not work properly for my plugin.
> 
> In the get_permission_actions method I added all the actions relevant to
> the embedding feature (TICKET_EMBED, MILESTONE_EMBED, etc). I then accessed
> the Admin/Permissions page, and granted permissions for all these actions
> to all the subjects (anonymous and authenticated). In the template
> containing the Embed button, I added a py:if statement which checks whether
> the relevant embed action is in perm(<resource>.resource) (e.g.
> perm(ticket.resource)). If so, the embed button should be displayed,
> otherwise, not. But this does not seem to work.
> Do you have any idea what might be the problem?

IIRC the Admin/Permissions page is for setting global permissions, which
are copied to product permissions when upgrade is performed.

In order to set product-scoped permissions you have to navigate to each
specific product in the Admin page (-> dropdown in the breadcrumb bar),
select the Permissions section in the menu, and add appropriate permissions.

--
matevz

> 
> Thanks,
> Antonia

Reply via email to