blob: 897f262fc54d58b4fa31810207bbb69f4f2cbd2c [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# Paths on which ACLs will be set
create path /acltest/A/B
# Service users and ACLs for our integration tests
create service user fredWilmaService
create service user anotherService
# ACLs for those service users
set ACL for fredWilmaService
allow jcr:all on /acltest
deny jcr:write on /acltest/A
end
set ACL for fredWilmaService
allow jcr:write on /acltest/A/B
end
set ACL on /acltest
allow jcr:all for anotherService
end
set ACL on /acltest/A/B
deny jcr:write for anotherService
end
register nodetypes
<<===
<< <slingtest='http://sling.apache.org/ns/test/repoinit-it/v1.0'>
<< [slingtest:unstructured] > nt:unstructured
===>>
# SLING-8757 home() functions
create user alice
create user bob
set ACL on home(fredWilmaService)
allow jcr:all for alice
deny jcr:all for bob
end