Alright, color me resolved.  To sum up what I've done, just in case this helps 
anyone down the line, is such.

In /farcry_core/tags/farcry/genericAdmin.cfm I seperated out the Approve and 
Sent To Draft persmission by way of adding: 

iObjectSendPermission = 
oAuthorisation.checkPermission(permissionName="#stGrid.permissionType#SendToDraft",reference="PolicyGroup");

And changed the buttons to reflect this by :

<!--- Set status to pending --->
                                        <cfif iObjectRequestApprovalPermission 
eq 1>
                                        <td>
                                                <input type="submit" 
name="status" 
value="#application.adminBundle[session.dmProfile.locale].requestApproval#" 
width="100" style="width:100;" class="normalbttnstyle">
                                        </td>
                                        </cfif>
                                        <!--- set status to approved/draft --->
                                        <cfif iObjectApprovePermission eq 1>
                                        <td>
                                                <input type="submit" 
name="status" 
value="#application.adminBundle[session.dmProfile.locale].approve#" width="100" 
style="width:100;" class="normalbttnstyle">
                                        </td>                                   
                                        </cfif>
                                        <!--- set status to draft --->
                                        <cfif iObjectSendPermission eq 1>       
                                
                                        <td>
                                                <input type="submit" 
name="status" 
value="#application.adminBundle[session.dmProfile.locale].sendToDraft#" 
width="100" style="width:100;" class="normalbttnstyle">
                                        </td>
                                        </cfif>

This way, if the contributer needs to send an item back to draft, they don't 
also get approve permissions.

The final item add code in edit.cfm within my custom type to check for status.  
If it was approved, it sent the user back to the list screen:

<cfif #stObj.status# EQ 'approved'>
        <cflocation 
url="#application.url.farcry#/navajo/GenericAdmin.cfm?typename=#stObj.typename#"
 addtoken="no">
</cfif>

I'm happy, it works for me.
---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to