Commit e1f177b0 authored by Ard Schrijvers's avatar Ard Schrijvers

HSTTWO-4285 Make sure to test on a path for which the parent exists

Since hst:channels got removed, we should not test a path below
hst:channels any more
parent c9452323
* Copyright 2011-2017 Hippo B.V. (
* Copyright 2011-2018 Hippo B.V. (
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -253,7 +253,7 @@ public class ChannelManagerImpl implements ChannelManager {
public synchronized boolean canUserModifyChannels() {
try {
final Session session = getSession();
return session.hasPermission(hstNodeLoadingCache.getRootPath() + "/" + HstNodeTypes.NODENAME_HST_CHANNELS + "/accesstest", Session.ACTION_ADD_NODE);
return session.hasPermission(hstNodeLoadingCache.getRootPath() + "/accesstest", Session.ACTION_ADD_NODE);
} catch (RepositoryException e) {
log.error("Repository error when determining channel manager access", e);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment