활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi,
While coding a WorkflowProcess implementation, I need to create a "system user" who can unlock pages.
Pages are locked through a WorkflowSession on a previous workflow step.
How can I give the "system user" the permissions to unlock pages?
Obviously I don't what to use an admin session, and I'm wondering how can I grant unlock permissions in AEM Security Permissions tab!
Thank you,
Lir
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
I'd read a thread somewhere which I'll try to find again & post here. It mentioned that 'page.canUnlock()' won't work but 'page.unlock()' will.
I'd read a thread somewhere which I'll try to find again & post here. It mentioned that 'page.canUnlock()' won't work but 'page.unlock()' will.
That was it!
It works now with admin AND with the system user for which I set "jcr:all"
I will reduce the privileges to only what's required of unlocking and that would be it.
It is strange why page.canUnlock() would return false, but no harm now that I know.
Thank you
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
For me page.unlock() with system user having high privileges didn't work. But something like below worked for me though
page = pageManager.getPage(pagePath);
if (page.isLocked()) {
Node node = session.getNode(pagePath+"/jcr:content");
node.removeMixin("mix:lockable");
session.save();
}
조회 수
답글
좋아요 수
Finally!!
Its probably because the second user who is trying to unlock doesn't have the read permissions on /home/users/.. path to read it's own ACL to find out that can it unlock that specific /content path?
That might be the case for my system user, but it shouldn't happen for admin. It does though