Cannot delete templates owned by user

Description

With Entity Access Control off. Deleting a template yields:

Repro:
1) Use Repositoy manager and import a template not previously loaded
2) Edit the template and disable it
3) Delete the template

Environment

None

Activity

Show:
Scott Reisdorf
December 4, 2018, 10:53 PM
Edited

looking at the code, this appears to have always existed: JcrFeedTemplateProvider.java#deleteTemplate(FeedManagerTemplate feedManagerTemplate)

This method needs to check if entity access is turned on before calling:
feedManagerTemplate.getAllowedActions().checkPermission(TemplateAccessControl.DELETE);

Tim Harsch
December 5, 2018, 12:42 AM

I thought the integration tests did simple Template import and then delete?

Done

Assignee

Scott Reisdorf

Reporter

Tim Harsch

Labels

None

Reviewer

None

Story point estimate

None

Components

Sprint

KYLO 0.11.0 Sprint 1

Fix versions

Affects versions

Priority

Medium
Configure