[opencms-dev] Allowing Users and ProjectManagers to edit JSP
dliliedahl
dliliedahl at efoundry.com
Tue May 1 17:45:38 CEST 2007
I've wanted to do this myself, but it cannot be done without editing the
source code. Take a look at:
org.opencms.db.CmsSecurityManager#hasPermissions
...
// if the resource type is jsp
// write is only allowed for administrators
if (writeRequired && !canIgnorePermissions && (resource.getTypeId()
== CmsResourceTypeJsp.getStaticTypeId())) {
if (!hasRole(dbc, CmsRole.DEVELOPER)) {
denied |= CmsPermissionSet.PERMISSION_WRITE;
denied |= CmsPermissionSet.PERMISSION_CONTROL;
}
}
this line would need to be disable to achieve what you want.
sincerely,
Dan Liliedahl
Yves Ackaert-2 wrote:
>
> How to configure OpenCms 6.2.3 to allow a member of the group Users or
> ProjectManagers to edit a jsp resource?
>
> It seems that removing the <accesscontrol> element of the <explorertype
> name="jsp"> element
> in the opencms-workplace.xml configuration file is not enough as it leads
> to the following message
> when editing :
>
> Error locking resource "/....jsp" with mode "CmsLock.C_MODE_COMMON".
> Reason: Denied access to resource "/....jsp", required permissions are
> "+w".
>
>
>
> Thanks in advance for any hint
>
> Yves Ackaert
>
>
> Note: I post again this question already posted on 6th April 2007
> because there seems to be a gap in the mailing list archive from 2nd March
> 2007 until 10th April 2007
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
--
View this message in context: http://www.nabble.com/Allowing-Users-and-ProjectManagers-to-edit-JSP-tf3613115.html#a10271071
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list