我更改了以下文件,但我不能再访问共享了,它只显示登录页面但我无法登录
在sitePermissionDedfinition.xml
中<permissionSet type="st:site" expose="selected">
<permissionGroup name="SiteManager" allowFullControl="true" expose="true" />
<permissionGroup name="Expert" allowFullControl="false" expose="true">
<includePermissionGroup permissionGroup="Expert" type="cm:cmobject" />
</permissionGroup>
<permissionGroup name="Intermediate" allowFullControl="false" expose="true">
<includePermissionGroup permissionGroup="Intermediate" type="cm:cmobject" />
</permissionGroup>
<permissionGroup name="Beginner" allowFullControl="false" expose="true">
<includePermissionGroup permissionGroup="Beginner" type="cm:cmobject" />
</permissionGroup>
</permissionSet>
</permissions>
在permission.get_en.properties
中## Groups
group.Beginner=Beginner
group.Intermediate=Intermediate
group.Expert=Expert
group.SiteManager=Site Managers
group.EVERYONE=All Other Users
## Roles
role.None=No privileges
role.SiteManager=Manager privileges
role.Expert=Expert privileges
role.Intermediate=Intermediate privileges
role.Beginner=Beginner privileges
role.ReadPermissions=No privileges
在slingshot_en.properties
## Roles
role.SiteManager=Manager
role.Expert=Expert
role.Intermediate=Intermediate
role.Beginner=Beginner
roles.readassociations=Beginner
答案 0 :(得分:1)
我不确定这个是否仍然是最新的,但它至少是一个很好的起点:
https://wiki.alfresco.com/wiki/Custom_Permissions_in_Share
另请参阅此tAlfresco问题:https://issues.alfresco.com/jira/browse/MNT-2456
答案 1 :(得分:1)
In C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension
创建名为custom-slingshot-acme-context.xml
的文件并粘贴代码
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans-2.0.dtd'>
<beans>
<bean id="cloud.custom.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.messages.acme</value>
</list>
</property>
</bean>
</beans>
在C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\messages
创建acme.properties
并粘贴代码
## Rename Roles
role.SiteManager=Acme Manager
role.SiteCollaborator=Acme Collaborator
role.SiteContributor=Acme Contributor
role.SiteConsumer=Acme Consumer