objectAdmin editMethod attribute

6 views
Skip to first unread message

Chris Kent

unread,
Mar 15, 2012, 1:15:54 PM3/15/12
to farcr...@googlegroups.com

Found a small issue with the use of the editMethod in objectAdmin.

I have a content type that can be edited in the webtop admin and also on the main website and found that editMethod attribute of objectAdmin.cfm would allow me to direct web admin users to a new edit method to restrict the fields/steps that they could edit.

The problem is that editMethod in objectAdmin  only gets used if the edit is initiated from the edit icon on the objectAdmin. If the edit occurs from the edit button of webtopOverview.cfm then the editMethod is ignored and the default edit method is used.

Not sure if there is a fix for this, but I found a workaround by extending edit method out to my content type and using code below to allow control either using the default edit method or the new web user edit based on the users roles.

<cfif  not application.fapi.hasRole("Sysadmin")>

<cfset super.edit(argumentCollection = arguments)>

<cfelse>

<cfset editWebUser(argumentCollection = arguments)>

</cfif>


Chris.

Sean Coyne

unread,
Mar 15, 2012, 1:40:41 PM3/15/12
to farcr...@googlegroups.com
Log a bug w/ your sample case.
Reply all
Reply to author
Forward
0 new messages