Liferay 6.2 改造系列之二十:修改默认添加用户权限及用户是否拥有个人站点的配置

1、修改默认添加用户权限为User,而非Powers User:

在/portal-master/portal-impl/src/portal.properties文件中有如下配置:

#
# Input a list of default role names separated by \n characters that are
# associated with newly created users.
#
admin.default.role.names=Power User\nUser

修改为:

#
# Input a list of default role names separated by \n characters that are
# associated with newly created users.
#
admin.default.role.names=User

2、修改默认拥有个人站点的用户权限为Powers User,而非User:

在/portal-master/portal-impl/src/portal.properties文件中有如下配置:

#
    # Set this to true if users must have the Power User role to have private
    # pages.
    #
    layout.user.private.layouts.power.user.required=false
……
    #
    # Set this to true if users must have the Power User role to have public
    # pages.
    #
    layout.user.public.layouts.power.user.required=false

修改为:

 #
    # Set this to true if users must have the Power User role to have private
    # pages.
    #
    layout.user.private.layouts.power.user.required=true
……
    #
    # Set this to true if users must have the Power User role to have public
    # pages.
    #
    layout.user.public.layouts.power.user.required=true

  

时间: 2024-08-10 21:30:33

Liferay 6.2 改造系列之二十:修改默认添加用户权限及用户是否拥有个人站点的配置的相关文章

Liferay 6.2 改造系列之二十四:修改liferay密码的加密方式

为了便于后期与Cas集成过程中使用数据库用户的方便,将liferay密码的加密方式改为SHA. 在/portal-master/portal-impl/src/portal.properties配置文件中,有如下配置: #passwords.encryption.algorithm=BCRYPT/10 #passwords.encryption.algorithm=MD2 #passwords.encryption.algorithm=MD5 #passwords.encryption.algo

Liferay 6.2 改造系列之二十二:如何发布WAR包

1.修改web资源并发布 如果修改了默认主题信息,需执行portal-web中的build-themes任务: 执行portal-web中的deploy任务: 2.修改portal-impl中的java文件并发布 执行portal-impl中的clean.compile.deploy任务: 3.发布所有内容(可参考此系列中第一篇文章) 执行portal中的deploy任务: 4.发布WAR包 WAR包根据服务器中运行的ROOT项目打包而来,因此需要先将修改的内容执行对应的deploy任务发布后,

Liferay 6.2 改造系列之二十三:修改Liferay原始主题中"技术支持:Liferay"字样

1.修改主题模板文件,具体位置如下 (1) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm (2) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm 将上述两个文件改为相应如下即可: <footer id="footer" role="cont

Liferay 6.2 改造系列之二:清理不需要的Portlet

一.特殊Portlet: 以下Portlet数据特殊用途的Portlet,去除后会出现运行错误: 1.站点模版 通过com.liferay.portal.events.AddDefaultLayoutSetPrototypesAction类,系统初始化站点模版时,使用到如下Portlet Intranet Site模版: 首页: 116  活动 (Activities) 3  查询(Search) 82  语言 (Language) 101  Asset Publisher 文档页: 20  文

Liferay 6.2 改造系列之二十一:修改WebSphare下JSONWS服务不生效的BUG

问题原因是WebSphare下,servletContext.getContextPath()获取到的值为“/”而非空字符串. 在/portal-master/portal-impl/src/com/liferay/portal/spring/context/PortalContextLoaderListener.java文件中有如下代码: if (ServerDetector.isWebSphere() &&_portalServletContextPath.isEmpty()) { _

Liferay 6.2 改造系列之九:修改用户信息填写规则

为了让用户信息更贴近实际需求,修改如下信息: 1.让登录名可以使用数字.“.”.“_”等 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true when you want the validation to allow for creation of # numeric screen names. # users.screen.name.allow.numeric=false # # In

Liferay 6.2 改造系列之四:重新整理Application添加页面默认提供的Portlet清单

经过2.3两步后,剩余Portlet已经不多,添加Application页面如下: 将用不到的Portlet隐藏起来:11   Portal目录 (Portal Directory) 将内嵌Protlet和IFrame Portlet移到工具分类中. 修改/portal-master/portal-web/docroot/WEB-INF/liferay-display.xml文件: <display> <category name="category.hidden"&

Liferay 6.2 改造系列之十三:修改用户编辑页面表单内容

为简化用户编辑,删除无用内容: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the user form # when adding a user. # users.form.add.main=details,organizations,personal-site users.form.add.ide

Powershell管理系列(二十六)PowerShell操作之批量导出&导入邮箱

-----提供AD\Exchange\Lync\Sharepoint\CRM\SC\O365等微软产品实施及外包,QQ:185426445.电话18666943750 项目中有时候做跨林邮箱迁移的时候,条件不成熟,比如安全考虑或者其他考虑,不能做双林信任,这样就提出了一个问题,历史邮件需要使用的话怎么办,一个简单高效的解决办法就是从源森林批量导出邮件为.pst文件,在批量导入到目的域森林,具体操作如下: 1.赋予管理账号邮件导入导出权限,命令如下: cls whoami New-Manageme