mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
AW-542 Guest user can not see any Categories
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2456 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -52,10 +52,6 @@
|
||||
<bean id="spacesBootstrap" parent="spacesStoreImporter">
|
||||
<property name="bootstrapViews">
|
||||
<list>
|
||||
<props>
|
||||
<prop key="path">/</prop>
|
||||
<prop key="location">alfresco/bootstrap/categories.xml</prop>
|
||||
</props>
|
||||
<props>
|
||||
<prop key="path">/</prop>
|
||||
<prop key="location">alfresco/bootstrap/spaces.xml</prop>
|
||||
@@ -65,6 +61,10 @@
|
||||
<prop key="path">/</prop>
|
||||
<prop key="location">alfresco/bootstrap/system.xml</prop>
|
||||
</props>
|
||||
<props>
|
||||
<prop key="path">/</prop>
|
||||
<prop key="location">alfresco/bootstrap/categories.xml</prop>
|
||||
</props>
|
||||
<props>
|
||||
<prop key="path">/${spaces.company_home.childname}/${spaces.guest_home.childname}</prop>
|
||||
<prop key="location">alfresco/bootstrap/tutorial.xml</prop>
|
||||
@@ -83,6 +83,11 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!--
|
||||
<bean id="versionBootstrap" parent="versionStoreImporter">
|
||||
</bean>
|
||||
-->
|
||||
|
||||
<!-- Descriptor Service -->
|
||||
|
||||
<bean id="descriptorComponent" class="org.alfresco.repo.descriptor.DescriptorServiceImpl">
|
||||
|
@@ -2,6 +2,12 @@
|
||||
xmlns:cm="http://www.alfresco.org/model/content/1.0">
|
||||
|
||||
<cm:category_root view:childName="cm:categoryRoot">
|
||||
<view:acl>
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>guest</view:authority>
|
||||
<view:permission>Read</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
<cm:name>categories</cm:name>
|
||||
<cm:categories>
|
||||
|
||||
|
@@ -2,13 +2,13 @@
|
||||
xmlns:cm="http://www.alfresco.org/model/content/1.0"
|
||||
xmlns:app="http://www.alfresco.org/model/application/1.0">
|
||||
|
||||
<!-- NOTE: all replaced properties referenced from repository.properties file must also be
|
||||
<!-- NOTE: all replaced properties referenced from repository.properties file must also be
|
||||
mapped in the bootstrap-context.xml spacesBootstrap/configuration section -->
|
||||
<cm:folder view:childName="${spaces.company_home.childname}">
|
||||
<view:acl view:inherit="false">
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>GROUP_EVERYONE</view:authority>
|
||||
<view:permission>Guest</view:permission>
|
||||
<view:permission>Consumer</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
<app:uifacets />
|
||||
@@ -39,12 +39,12 @@
|
||||
<cm:description>${spaces.templates.content.description}</cm:description>
|
||||
</cm:folder>
|
||||
<cm:folder view:childName="${spaces.savedsearches.childname}">
|
||||
<view:acl view:inherit="false">
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>GROUP_EVERYONE</view:authority>
|
||||
<view:permission>Contributor</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
<view:acl view:inherit="false">
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>GROUP_EVERYONE</view:authority>
|
||||
<view:permission>Contributor</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
<app:uifacets />
|
||||
<cm:name>${spaces.savedsearches.name}</cm:name>
|
||||
<app:icon>space-icon-default</app:icon>
|
||||
@@ -57,11 +57,11 @@
|
||||
<view:acl view:inherit="false">
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>guest</view:authority>
|
||||
<view:permission>Guest</view:permission>
|
||||
<view:permission>Consumer</view:permission>
|
||||
</view:ace>
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>GROUP_EVERYONE</view:authority>
|
||||
<view:permission>Guest</view:permission>
|
||||
<view:permission>Consumer</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
<app:uifacets />
|
||||
|
@@ -2,7 +2,17 @@
|
||||
xmlns:cm="http://www.alfresco.org/model/content/1.0"
|
||||
xmlns:sys="http://www.alfresco.org/model/system/1.0"
|
||||
xmlns:app="http://www.alfresco.org/model/application/1.0">
|
||||
|
||||
|
||||
<view:reference view:pathref="${bootstrap.location.path}">
|
||||
<!-- Apply Read access to Everyone on root node of Spaces Store -->
|
||||
<view:acl>
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>GROUP_EVERYONE</view:authority>
|
||||
<view:permission>Read</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
</view:reference>
|
||||
|
||||
<sys:container view:childName="${system.system_container.childname}">
|
||||
<sys:children>
|
||||
<sys:container view:childName="${system.people_container.childname}">
|
||||
@@ -15,12 +25,12 @@
|
||||
<cm:organizationId></cm:organizationId>
|
||||
<cm:homeFolder>/${spaces.company_home.childname}</cm:homeFolder>
|
||||
</cm:person>
|
||||
<!-- Guest needs to read their own home space -->
|
||||
<!-- Guest needs to read their own person information -->
|
||||
<cm:person view:childName="cm:person">
|
||||
<view:acl view:inherit="false">
|
||||
<view:ace view:access="ALLOWED">
|
||||
<view:authority>guest</view:authority>
|
||||
<view:permission>Guest</view:permission>
|
||||
<view:permission>Read</view:permission>
|
||||
</view:ace>
|
||||
</view:acl>
|
||||
<cm:userName>guest</cm:userName>
|
||||
|
@@ -645,6 +645,9 @@
|
||||
<property name="authorityService">
|
||||
<ref bean="AuthorityService" />
|
||||
</property>
|
||||
<property name="authenticationService">
|
||||
<ref bean="AuthenticationService" />
|
||||
</property>
|
||||
<property name="viewParser">
|
||||
<ref bean="viewParser" />
|
||||
</property>
|
||||
@@ -734,6 +737,12 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="versionStoreImporter" parent="storeImporter" abstract="true">
|
||||
<property name="storeUrl">
|
||||
<value>workspace://lightWeightVersionStore</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Exporters -->
|
||||
<bean id="exporterComponent" class="org.alfresco.repo.exporter.ExporterComponent">
|
||||
<property name="namespaceService">
|
||||
|
@@ -24,3 +24,16 @@ patch.guestUser.result=Added guest user and fixed permissions.
|
||||
|
||||
patch.fixNodeSerializableValues.description=Ensure that property values are not stored as Serializable if at all possible
|
||||
patch.fixNodeSerializableValues.result=Fixed {0} node property serialized values
|
||||
|
||||
patch.updateGuestPermission.description=Rename guest permission from 'Guest' to 'Consumer'
|
||||
patch.updateGuestPermission.result=Created the following permission reference names: {0}. \nUpdated {1} permission entries.
|
||||
|
||||
patch.categoryRootPermission.description=Sets required permissions on 'Category Root' folder.
|
||||
patch.categoryRootPermission.result=Granted CONSUMER role to GUEST on ''Category Root'' folder: {0}.
|
||||
patch.categoryRootPermission.err.not_found='Category Root' folder ({0}) could not be found.
|
||||
|
||||
patch.guestPersonPermission.description=Change Guest Person permission from 'Consumer' to 'Read'
|
||||
patch.guestPersonPermission.result=Updated Guest Person permission from 'Consumer' to 'Read'
|
||||
|
||||
patch.spacesRootPermission.description=Change Spaces store root permission from 'Consumer' to 'Read'
|
||||
patch.spacesRootPermission.result=Updated Spaces store root permission from 'Consumer' to 'Read'
|
||||
|
@@ -233,9 +233,9 @@
|
||||
<!-- A contributor can create content and then they have full permission on what -->
|
||||
<!-- they have created - via the permissions assigned to the owner. -->
|
||||
<permissionGroup name="Contributor" allowFullControl="false" expose="true" >
|
||||
<!-- Contributor is a guest who can add content, and then can modify via the -->
|
||||
<!-- Contributor is a consumer who can add content, and then can modify via the -->
|
||||
<!-- owner permissions. -->
|
||||
<includePermissionGroup permissionGroup="Guest" type="cm:cmobject"/>
|
||||
<includePermissionGroup permissionGroup="Consumer" type="cm:cmobject"/>
|
||||
<includePermissionGroup permissionGroup="AddChildren" type="sys:base"/>
|
||||
<!-- Check out requires write permissions so this will not apply to all -->
|
||||
<!-- documents. -->
|
||||
@@ -246,13 +246,13 @@
|
||||
<!-- new nodes. They can cehck out content into a space to which they have -->
|
||||
<!-- create permission. -->
|
||||
<permissionGroup name="Editor" expose="true" allowFullControl="false" >
|
||||
<includePermissionGroup type="cm:cmobject" permissionGroup="Guest"/>
|
||||
<includePermissionGroup type="cm:cmobject" permissionGroup="Consumer"/>
|
||||
<includePermissionGroup type="sys:base" permissionGroup="Write"/>
|
||||
<includePermissionGroup type="cm:lockable" permissionGroup="CheckOut"/>
|
||||
</permissionGroup>
|
||||
|
||||
<!-- The guest permission allows read to everything by default. -->
|
||||
<permissionGroup name="Guest" allowFullControl="false" expose="true" >
|
||||
<!-- The Consumer permission allows read to everything by default. -->
|
||||
<permissionGroup name="Consumer" allowFullControl="false" expose="true" >
|
||||
<includePermissionGroup permissionGroup="Read" type="sys:base" />
|
||||
</permissionGroup>
|
||||
|
||||
@@ -304,7 +304,7 @@
|
||||
<permissionGroup name="Collaborator" extends="true" expose="true"/>
|
||||
<permissionGroup name="Contributor" extends="true" expose="true"/>
|
||||
<permissionGroup name="Editor" extends="true" expose="true"/>
|
||||
<permissionGroup name="Guest" extends="true" expose="true"/>
|
||||
<permissionGroup name="Consumer" extends="true" expose="true"/>
|
||||
|
||||
</permissionSet>
|
||||
|
||||
|
@@ -184,5 +184,86 @@
|
||||
<ref bean="sessionFactory" />
|
||||
</property>
|
||||
</bean>
|
||||
<bean id="patch.updateGuestPermission" class="org.alfresco.repo.admin.patch.impl.UpdateGuestPermissionPatch" parent="basePatch" >
|
||||
<property name="id"><value>patch.updateGuestPermission</value></property>
|
||||
<property name="description"><value>patch.updateGuestPermission.description</value></property>
|
||||
<property name="fixesFromSchema"><value>0</value></property>
|
||||
<property name="fixesToSchema"><value>5</value></property>
|
||||
<property name="targetSchema"><value>6</value></property>
|
||||
<!-- helper beans -->
|
||||
<property name="sessionFactory">
|
||||
<ref bean="sessionFactory"/>
|
||||
</property>
|
||||
<property name="dependsOn">
|
||||
<list>
|
||||
<ref bean="patch.guestUser"/>
|
||||
<ref bean="patch.updatePermissionData"/>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
<bean id="patch.guestPersonPermission" class="org.alfresco.repo.admin.patch.impl.GuestPersonPermissionPatch" parent="basePatch" >
|
||||
<property name="id"><value>patch.guestPersonPermission</value></property>
|
||||
<property name="description"><value>patch.guestPersonPermission.description</value></property>
|
||||
<property name="fixesFromSchema"><value>0</value></property>
|
||||
<property name="fixesToSchema"><value>5</value></property>
|
||||
<property name="targetSchema"><value>6</value></property>
|
||||
<!-- helper beans for execution -->
|
||||
<property name="permissionService">
|
||||
<ref bean="permissionService"/>
|
||||
</property>
|
||||
<property name="personService">
|
||||
<ref bean="personService"/>
|
||||
</property>
|
||||
<property name="dependsOn">
|
||||
<list>
|
||||
<ref bean="patch.updateGuestPermission" />
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
<bean id="patch.spacesRootPermission" class="org.alfresco.repo.admin.patch.impl.SpacesRootPermissionPatch" parent="basePatch" >
|
||||
<property name="id"><value>patch.spacesRootPermission</value></property>
|
||||
<property name="description"><value>patch.spacesRootPermission.description</value></property>
|
||||
<property name="fixesFromSchema"><value>0</value></property>
|
||||
<property name="fixesToSchema"><value>5</value></property>
|
||||
<property name="targetSchema"><value>6</value></property>
|
||||
<!-- helper beans for execution -->
|
||||
<property name="spacesBootstrap">
|
||||
<ref bean="spacesBootstrap" />
|
||||
</property>
|
||||
<property name="permissionService">
|
||||
<ref bean="permissionService"/>
|
||||
</property>
|
||||
<property name="nodeService">
|
||||
<ref bean="nodeService"/>
|
||||
</property>
|
||||
<property name="dependsOn">
|
||||
<list>
|
||||
<ref bean="patch.updateGuestPermission" />
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
<bean id="patch.categoryRootPermission" class="org.alfresco.repo.admin.patch.impl.CategoryRootPermissionPatch" parent="basePatch" >
|
||||
<property name="id"><value>patch.categoryRootPermission</value></property>
|
||||
<property name="description"><value>patch.categoryRootPermission.description</value></property>
|
||||
<property name="fixesFromSchema"><value>0</value></property>
|
||||
<property name="fixesToSchema"><value>5</value></property>
|
||||
<property name="targetSchema"><value>6</value></property>
|
||||
<!-- helper beans for execution -->
|
||||
<property name="permissionService">
|
||||
<ref bean="permissionService"/>
|
||||
</property>
|
||||
<property name="searchService">
|
||||
<ref bean="searchService"/>
|
||||
</property>
|
||||
<property name="nodeService">
|
||||
<ref bean="nodeService"/>
|
||||
</property>
|
||||
<property name="namespaceService">
|
||||
<ref bean="namespaceService"/>
|
||||
</property>
|
||||
<property name="spacesBootstrap">
|
||||
<ref bean="spacesBootstrap" />
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
@@ -378,8 +378,8 @@
|
||||
<property name="afterInvocationManager"><ref local="afterInvocationManager"/></property>
|
||||
<property name="objectDefinitionSource">
|
||||
<value>
|
||||
org.alfresco.service.cmr.repository.ContentService.getReader=ACL_NODE.0.cm:content.ReadContent
|
||||
org.alfresco.service.cmr.repository.ContentService.getWriter=ACL_NODE.0.cm:content.WriteContent
|
||||
org.alfresco.service.cmr.repository.ContentService.getReader=ACL_NODE.0.sys:base.ReadContent
|
||||
org.alfresco.service.cmr.repository.ContentService.getWriter=ACL_NODE.0.sys:base.WriteContent
|
||||
org.alfresco.service.cmr.repository.ContentService.isTransformable=ACL_ALLOW
|
||||
org.alfresco.service.cmr.repository.ContentService.transform=ACL_ALLOW
|
||||
org.alfresco.service.cmr.repository.ContentService.getTempWriter=ACL_ALLOW
|
||||
|
@@ -11,8 +11,8 @@ version.label=
|
||||
|
||||
# Edition label
|
||||
|
||||
version.edition=Open Source
|
||||
version.edition=Community Network
|
||||
|
||||
# Schema number
|
||||
|
||||
version.schema=5
|
||||
version.schema=6
|
||||
|
Reference in New Issue
Block a user