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.
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry